test/lib/vedeu/repository/command_repository_test.rb in vedeu-0.0.20 vs test/lib/vedeu/repository/command_repository_test.rb in vedeu-0.0.21

- old
+ new

@@ -5,14 +5,14 @@ let(:described_class) { CommandRepository } let(:input) { } before do Command.create({ name: 'apple', - klass: DummyCommand, + entity: DummyCommand, options: { keypress: 'a', keyword: 'apple' } }) Command.create({ name: 'banana', - klass: DummyCommand, + entity: DummyCommand, options: { keypress: 'b', keyword: 'banana' } }) end after do CommandRepository.reset @@ -64,11 +64,11 @@ subject.name.wont_equal('banana') end end end - describe '.klass' do - let(:subject) { described_class.klass } + describe '.entity' do + let(:subject) { described_class.entity } it 'returns Command' do subject.must_equal(Command) end end