Skip to content

Instantly share code, notes, and snippets.

@rsl
Created January 29, 2010 17:28
Show Gist options
  • Save rsl/289924 to your computer and use it in GitHub Desktop.
Save rsl/289924 to your computer and use it in GitHub Desktop.
context "actual context" do
setup do
@object.create!
end
context "context needed for shoulda alone" do
setup do
@object.increment! :attribute
end
should_change("attribute", :from => 0, :to => 1) do
@object.attribute
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment