spec/lib/consumer_spec.rb in vx-lib-consumer-0.3.2 vs spec/lib/consumer_spec.rb in vx-lib-consumer-0.3.3

- old
+ new

@@ -1,6 +1,6 @@ -require 'json' +require 'oj' require 'timeout' require 'spec_helper' describe Vx::Lib::Consumer do @@ -118,10 +118,10 @@ Bob.publish "not json" sleep 0.1 consumer.cancel - expect(error[0]).to be_an_instance_of(JSON::ParserError) + expect(error[0]).to be_an_instance_of(Oj::ParseError) expect(error[1][:consumer]).to_not be_nil end it "should wait shutdown" do bob1 = Bob.subscribe