Skip to content

Commit

Permalink
Reorganizing the startup spec code, moving it to a better place in th…
Browse files Browse the repository at this point in the history
…e spec.
  • Loading branch information
ymendel committed Jun 14, 2008
1 parent d694451 commit 591e5bd
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions spec/stream_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,27 @@
end
end

it 'should start up' do
@stream.should respond_to(:startup)
end

describe 'when starting up' do
before :each do
@stream.stubs(:schedule)
@stream.stubs(:start)
end

it 'should schedule' do
@stream.expects(:schedule)
@stream.startup
end

it 'should start' do
@stream.expects(:start)
@stream.startup
end
end

it 'should watch' do
FSEvents::Stream.should respond_to(:watch)
end
Expand Down Expand Up @@ -496,27 +517,6 @@
@stream.shutdown
end
end

it 'should start up' do
@stream.should respond_to(:startup)
end

describe 'when starting up' do
before :each do
@stream.stubs(:schedule)
@stream.stubs(:start)
end

it 'should schedule' do
@stream.expects(:schedule)
@stream.startup
end

it 'should start' do
@stream.expects(:start)
@stream.startup
end
end
end

describe FSEvents::Stream::StreamError do
Expand Down

0 comments on commit 591e5bd

Please sign in to comment.