spec/rubygems_spec.rb in popularity-0.1.1 vs spec/rubygems_spec.rb in popularity-0.2.1
- old
+ new
@@ -35,16 +35,16 @@
it "should have correct number of downloads" do
expect(85).to eq(subject.downloads)
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
[:downloads].each do |att|
expect(subject.send(att)).to eq(json[att.to_s])
end
end
end
end
-end
\ No newline at end of file
+end