spec/google_plus_spec.rb in popularity-0.1.1 vs spec/google_plus_spec.rb in popularity-0.2.1
- old
+ new
@@ -15,13 +15,13 @@
it "should calculate the correct total" do
expect(subject.plus_ones).to equal subject.total
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.plus_ones).to eq(json["plus_ones"])
end
end
end
-end
\ No newline at end of file
+end