Sha256: bb91a3f174e5f97d649777ef53a6937ab058732a1eec79f83b524aa485f5e909
Contents?: true
Size: 685 Bytes
Versions: 1
Compression:
Stored size: 685 Bytes
Contents
When /^I (un)?mark the Test post for review$/ do |negation| within "#post-#{@post.id}" do click_link "Review" end end Then /^the Test post should be marked for review$/ do within "#post-#{@post.id}" do link = find_link('Review') link[:class].should =~ /btn-warning/ end @post.reload @post.ready_for_review.should be_true end Then /^the Test post should not be marked for review$/ do within "#post-#{@post.id}" do link = find_link('Review') link[:class].should_not =~ /btn-warning/ end @post.reload @post.ready_for_review.should be_false end Given /^the Test Post is marked for Review$/ do @post.update_attribute :ready_for_review, true end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crowdblog-0.0.16 | features/step_definitions/review_steps.rb |