Skip to content

Instantly share code, notes, and snippets.

@padi
Created September 15, 2011 16:16
Show Gist options
  • Save padi/1219689 to your computer and use it in GitHub Desktop.
Save padi/1219689 to your computer and use it in GitHub Desktop.
Then /^there should be a report "([^"]*)" with the condition "([^"]*)" from (?:"([^"]*)"|anonymous)$/ do |text, condition, username|
Report.last.text.should == text
Report.last.conditions.should == [condition]
Report.last.username.should == username
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment