Skip to content

Instantly share code, notes, and snippets.

@ddollar
Created August 25, 2009 19:21
Show Gist options
  • Select an option

  • Save ddollar/174944 to your computer and use it in GitHub Desktop.

Select an option

Save ddollar/174944 to your computer and use it in GitHub Desktop.
context "On DELETE to subscription for a gem that the user is not subscribed to" do
setup do
@gem = Factory(:rubygem)
Factory(:version, :rubygem => @gem)
delete :subscription, :id => @gem.to_param
end
should_assign_to(:gem) { @gem }
should_respond_with 500
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment