1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00
draper/features/step_definitions/post_steps.rb
Steve Klabnik 6b5b0a77ee Added first integration test
This test tests the following Draper features:

1) finders
2) decorates
3) using a decorated method

It also is the first test that verifies that the whole Cucumber setup
actually works properly.
2012-10-19 14:12:27 -03:00

11 lines
252 B
Ruby

Given /^a blog post exists that was posted today$/ do
@post = Post.create
end
When /^I visit the page for that post$/ do
visit post_path(@post)
end
Then /^I should see that it was posted today$/ do
page.should have_content("Posted: Today")
end