Sha256: e7e7c013b566e126fe28976f11d7c91808a9f2c762a67521ec10c245873f1b08
Contents?: true
Size: 755 Bytes
Versions: 4
Compression:
Stored size: 755 Bytes
Contents
When /^I visit the blog page$/ do visit '/my-blog/' end When /^I visit the blog search page$/ do visit '/my-blog/search' end When /^I visit the blog archive page$/ do visit '/my-blog/archive' end When /^I visit the blog RSS feed$/ do visit Blog.first.feed end Given /^I have a blog "([^"]*)"$/ do |title| Blog.delete_all Post.delete_all Blog.make :title => title end Given /the following blog posts exist:/ do |table| table.hashes.each{ |hash| Blog.first.posts.create hash } end Given /^no blogs exist$/ do Blog.delete_all Post.delete_all end Then /^post slug should be "([^"]*)"$/ do |slug| Blog.first.posts.last.slug.should == slug end Then /^the post is published$/ do Blog.first.posts.last.published?.should be_true end
Version data entries
4 entries across 4 versions & 1 rubygems