spec/rflow/message/data/raw_spec.rb in rflow-1.0.0a2 vs spec/rflow/message/data/raw_spec.rb in rflow-1.0.0a3
- old
+ new
@@ -6,11 +6,11 @@
class Data
describe 'Raw Avro Schema' do
let(:schema) { Configuration.available_data_types['RFlow::Message::Data::Raw']['avro'] }
it "should load the schema" do
- schema.should_not be_nil
+ expect(schema).not_to be_nil
end
it "should encode and decode an object" do
raw = {'raw' => Array.new(256) { rand(256) }.pack('c*')}
@@ -18,11 +18,11 @@
encoded = encode_avro(schema, raw)
expect { decode_avro(schema, encoded) }.to_not raise_error
decoded = decode_avro(schema, encoded)
- decoded.should == raw
- decoded['raw'].should == raw['raw']
+ expect(decoded).to eq(raw)
+ expect(decoded['raw']).to eq(raw['raw'])
end
end
end
end
end