test/lib/vedeu/repository/command_repository_test.rb in vedeu-0.0.38 vs test/lib/vedeu/repository/command_repository_test.rb in vedeu-0.0.39

- old
+ new

@@ -35,23 +35,15 @@ command.keypress.must_equal('a') command.keypress.wont_equal('b') command.name.wont_equal('banana') end - it 'returns FalseClass when no command was found' do - command = CommandRepository.by_input('not_found') - command.must_be_instance_of(FalseClass) + it 'returns false when no command was found' do + CommandRepository.by_input('not_found').must_be_instance_of(FalseClass) end - it 'returns FalseClass when there is no input' do + it 'returns false when there is no input' do CommandRepository.by_input('').must_be_instance_of(FalseClass) - end - end - - describe '.create' do - it 'returns a Command' do - command = CommandRepository.create({}) - command.must_be_instance_of(Command) end end describe '.entity' do it 'returns Command' do