spec/hash_serialisation_spec.rb in esendex-0.5.0 vs spec/hash_serialisation_spec.rb in esendex-0.6.0

- old
+ new

@@ -20,17 +20,17 @@ describe "#initialize" do subject { DummyHashSerialisation.new @attrs } it "sets the name" do - subject.name.should eq(name) + expect(subject.name).to eq(name) end it "sets the time" do - subject.time.should eq(time) + expect(subject.time).to eq(time) end it "sets the notes" do - subject.notes.should eq(notes) + expect(subject.notes).to eq(notes) end context "when invalid attribute passed" do before(:each) do @attrs[random_string] = random_string @@ -43,10 +43,10 @@ describe "#to_hash" do subject { DummyHashSerialisation.new(@attrs).to_hash } it "should match the init hash" do - subject.should eq(@attrs) + expect(subject).to eq(@attrs) end end end end \ No newline at end of file