spec/pinterest_spec.rb in popularity-0.1.1 vs spec/pinterest_spec.rb in popularity-0.2.1

- old
+ new

@@ -15,13 +15,13 @@ it "should calculate the correct total" do expect(subject.total).to eq subject.pins 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.pins).to eq(json["pins"]) end end end -end \ No newline at end of file +end