-
Notifications
You must be signed in to change notification settings - Fork 144
Optionally push system notifications when reloading #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
UI.info "Reloading browser: #{paths.join(' ')}" | ||
msg = "Reloading browser: #{paths.join(' ')}" | ||
UI.info msg | ||
Notifier.notify(msg, title: 'Reloading browser', image: :success) if options[:notify] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [93/80]
@thibaudgg "by default doesn't send notification" spec doesn't seem valuable for me, but since you're measuring code coverage I decided to keep it. |
|
||
describe "#reload_browser(paths = [])" do | ||
it "displays a message" do | ||
expect(Guard::UI).to receive(:info).with("Reloading browser: stylesheets/layout.css stylesheets/style.css") | ||
expect(Guard::UI).to receive(:info).with('Reloading browser: stylesheets/layout.css stylesheets/style.css') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [113/80]
end | ||
|
||
it "optionally pushes notification" do | ||
expect(::Guard::Notifier).to receive(:notify).with(kind_of(String), have_key(:title)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line is too long. [91/80]
Looks good, please just fix the two houndci issue and it'll be merge-able. Thanks! |
|
||
it "optionally pushes notification" do | ||
expect(::Guard::Notifier).to receive(:notify) | ||
.with(kind_of(String), have_key(:title)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Place the . on the previous line, together with the method call receiver.
|
||
it "optionally pushes notification" do | ||
expect(::Guard::Notifier).to receive(:notify) | ||
.with(kind_of(String), have_key(:title)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Place the . on the previous line, together with the method call receiver.
@thibaudgg Hound looks happy now, although I personally don't agree 'don\t' do something' is better than "don't do something" |
What about 'does not' ? |
👌 |
Optionally push system notifications when reloading
2.3.0 released, thanks! |
No description provided.