mirror of
https://github.com/drapergem/draper
synced 2023-03-27 23:21:17 -04:00

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.
11 lines
252 B
Ruby
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
|