test/lib/vedeu/repository/command_repository_test.rb in vedeu-0.0.11 vs test/lib/vedeu/repository/command_repository_test.rb in vedeu-0.0.12

- old
+ new

@@ -16,12 +16,12 @@ after do CommandRepository.reset end - describe '.find_by_input' do - let(:subject) { described_class.find_by_input(input) } + describe '.by_keypress' do + let(:subject) { described_class.by_keypress(input) } context 'when the command was found by keypress' do let(:input) { 'b' } it { subject.must_be_instance_of(Command) } @@ -30,9 +30,13 @@ it { subject.name.wont_equal('apple') } it { subject.keypress.must_equal('b') } end + end + + describe '.by_keyword' do + let(:subject) { described_class.by_keyword(input) } context 'when the command was found by keyword' do let(:input) { 'apple' } it { subject.must_be_instance_of(Command) }