Skip to content

Instantly share code, notes, and snippets.

@nickboyce
Created April 10, 2012 09:31
Show Gist options
  • Save nickboyce/2349803 to your computer and use it in GitHub Desktop.
Save nickboyce/2349803 to your computer and use it in GitHub Desktop.
it "each artwork should have the correct structure" do
JSON.parse(response.body)["results"].each do |artwork|
artwork.keys.sort.should eq JSON.parse(FactoryGirl.create(:artwork).to_json).keys.sort
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment