Skip to content

Instantly share code, notes, and snippets.

@mikebaldry
Created October 7, 2013 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikebaldry/6868133 to your computer and use it in GitHub Desktop.
Save mikebaldry/6868133 to your computer and use it in GitHub Desktop.
it_behaves_like do
a_serialized_user(response["user"], @expected_user)
end
---
shared_examples do
a_serialized_user do |user_hash, user|
it "should have a name" do
expect(user_hash["name"]).to eq(user.name)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment