Skip to content

Commit

Permalink
Stub the listener.
Browse files Browse the repository at this point in the history
  • Loading branch information
netzpirat committed Jun 18, 2012
1 parent 3d694b8 commit 7b553f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/guard/interactors/readline_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
end

describe "#prompt" do
before do
::Guard.listener = stub('Listener')
end

it 'returns > when listener is active' do
::Guard.listener.should_receive(:paused?).and_return false
subject.prompt.should == '> '
Expand Down

0 comments on commit 7b553f0

Please sign in to comment.