Sha256: 2c46126e000826e5247c20d91ceed3479449f5efebbf7698e0cb9d615d300c27
Contents?: true
Size: 666 Bytes
Versions: 13
Compression:
Stored size: 666 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
Version data entries
13 entries across 13 versions & 1 rubygems