Permalink
Browse files

Bring back them ROCKETS =>

  • Loading branch information...
1 parent 49da217 commit 5582390840323af3a9b9d67db77524d38f614569 @matthijsgroen matthijsgroen committed Oct 5, 2012
Showing with 9 additions and 9 deletions.
  1. +9 −9 spec/guard/notifiers/tmux_spec.rb
@@ -74,14 +74,14 @@ def self.show(options) end
end
it 'calls display_message if the display_message flag is set' do
- subject.stub system: true
- subject.should_receive(:display_message).with('notify', 'any title', 'any message', { display_message: true })
+ subject.stub :system => true
+ subject.should_receive(:display_message).with('notify', 'any title', 'any message', { :display_message => true })
- subject.notify('notify', 'any title', 'any message', 'any image', { display_message: true })
+ subject.notify('notify', 'any title', 'any message', 'any image', { :display_message => true })
end
it 'does not call display message if the display_message flag is not set' do
- subject.stub system: true
+ subject.stub :system => true
subject.should_receive(:display_message).never
subject.notify('notify', 'any title', 'any message', 'any image', { })
@@ -90,16 +90,16 @@ def self.show(options) end
describe '.display_message' do
before do
- subject.stub system: true
+ subject.stub :system => true
end
it 'sets the display-time' do
subject.should_receive(:system).with('tmux set display-time 3000').once
- subject.display_message 'success', 'any title', 'any message', timeout: 3
+ subject.display_message 'success', 'any title', 'any message', :timeout => 3
end
it 'sets the background color' do
- subject.stub tmux_color: 'blue'
+ subject.stub :tmux_color => 'blue'
subject.should_receive(:system).with('tmux set message-bg blue').once
subject.display_message 'success', 'any title', 'any message'
end
@@ -111,12 +111,12 @@ def self.show(options) end
it 'formats the message' do
subject.should_receive(:system).with('tmux display-message \'(any title) -> any message - line two\'').once
- subject.display_message 'success', 'any title', "any message\nline two", message_format: '(%s) -> %s'
+ subject.display_message 'success', 'any title', "any message\nline two", :message_format => '(%s) -> %s'
end
it 'handles line-breaks' do
subject.should_receive(:system).with('tmux display-message \'any title - any message xx line two\'').once
- subject.display_message 'success', 'any title', "any message\nline two", line_separator: ' xx '
+ subject.display_message 'success', 'any title', "any message\nline two", :line_separator => ' xx '
end
end

0 comments on commit 5582390

Please sign in to comment.