Skip to content

Commit

Permalink
Specs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kpumuk committed Mar 15, 2010
1 parent 92661e5 commit d1dbd37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion spec/loops/base_spec.rb
Expand Up @@ -3,7 +3,7 @@
describe Loops::Base, '#with_lock' do
before :each do
@logger = mock('Logger').as_null_object
@loop = Loops::Base.new(@logger)
@loop = Loops::Base.new(@logger, 'simple', {})
end

context 'when an entity is not locked' do
Expand Down
8 changes: 4 additions & 4 deletions spec/loops/cli_spec.rb
Expand Up @@ -125,9 +125,9 @@

describe 'in #find_command_possibilities' do
it 'should return a list of possible commands' do
@cli.find_command_possibilities('s').should == %w(start stop)
@cli.find_command_possibilities('st').should == %w(start stop)
@cli.find_command_possibilities('sta').should == %w(start)
@cli.find_command_possibilities('s').should == %w(start stats stop)
@cli.find_command_possibilities('sta').should == %w(start stats)
@cli.find_command_possibilities('star').should == %w(start)
@cli.find_command_possibilities('l').should == %w(list)
@cli.find_command_possibilities('o').should == []
end
Expand All @@ -148,7 +148,7 @@

it 'should return an instance of command when everything is ok' do
expect {
@cli.find_command('sta').should be_a(Loops::Commands::StartCommand)
@cli.find_command('star').should be_a(Loops::Commands::StartCommand)
}.to_not raise_error(Loops::InvalidCommandError)
end
end
Expand Down

0 comments on commit d1dbd37

Please sign in to comment.