Skip to content

Instantly share code, notes, and snippets.

@crystalneth
Created May 16, 2011 15:34
Show Gist options
  • Save crystalneth/974663 to your computer and use it in GitHub Desktop.
Save crystalneth/974663 to your computer and use it in GitHub Desktop.
context "collapse without target" do
setup do
TrackEvent.track_collapse(1.hour, @user, 'test', @project)
TrackEvent.track_collapse(1.hour, @user, 'test', @project)
end
should_change("number of events", :by => 1) { TrackEvent.count }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment