Sha256: 53c2475482bbb167641eda035a511822615f7209e023169ac90a7256ab0a02da
Contents?: true
Size: 679 Bytes
Versions: 4
Compression:
Stored size: 679 Bytes
Contents
Given /I am logged in/ do visit '/admin/session' check "Bypass credentials check" click_on "Login with OpenID" end Then /^the comment exists$/ do Comment.count.should == 2 end Given /^the following comments? exists:$/ do |comment_table| comment_table.hashes.each do |hash| Factory(:comment, hash) end end Given /^a comment exists with attributes:$/ do |comment_table| comment_table.hashes.each do |hash| Comment.find(:first, :conditions => hash).should_not be_nil end end Given /^a comment does not exist with attributes:$/ do |comment_table| comment_table.hashes.each do |hash| Comment.find(:first, :conditions => hash).should be_nil end end
Version data entries
4 entries across 4 versions & 1 rubygems