spec/consumer_spec.rb in deimos-ruby-1.0.0 vs spec/consumer_spec.rb in deimos-ruby-1.1.0.pre.beta1

- old
+ new

@@ -94,10 +94,10 @@ stub_const('ConsumerTest::MySchemaConsumer', consumer_class) expect(MyConsumer.new.decode_key('test_id' => '123')).to eq('123') expect { MyConsumer.new.decode_key(123) }.to raise_error(NoMethodError) end - it 'should not encode if plain is set' do + it 'should not decode if plain is set' do consumer_class = Class.new(Deimos::Consumer) do schema 'MySchema' namespace 'com.my-namespace' key_config plain: true end