spec/medium_spec.rb in popularity-0.1.1 vs spec/medium_spec.rb in popularity-0.2.1
- old
+ new
@@ -35,13 +35,13 @@
it "should have correct number of recommends" do
expect(13).to eq(subject.recommends)
end
context "json" do
- let(:json) { subject.to_json }
+ let(:json) { subject.as_json }
- it "should have required attributes in json" do
+ it "should have required attributes in json" do
expect(subject.recommends).to eq(json["recommends"])
end
end
end
-end
\ No newline at end of file
+end