Skip to content

Instantly share code, notes, and snippets.

@radamant
Created July 30, 2008 20:54
Show Gist options
  • Save radamant/3332 to your computer and use it in GitHub Desktop.
Save radamant/3332 to your computer and use it in GitHub Desktop.
it "should support one API key" do
key = stub_model(ApiKey, :valid? => true)
p = Provider.new(@valid_attributes)
p.api_keys << key
p.api_keys.should have(1).items # <= don't forget to add .items!!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment