Sha256: 504f17cc0e1e0c608df78d1167ed610e80443f37bdb0a05a8852fe36a7f118e3

Contents?: true

Size: 674 Bytes

Versions: 4

Compression:

Stored size: 674 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_address
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

4 entries across 4 versions & 1 rubygems

Version Path
blog_logic-1.3.0 features/step_definitions/blog_steps.rb
blog_logic-1.2.4 features/step_definitions/blog_steps.rb
blog_logic-1.2.3 features/step_definitions/blog_steps.rb
blog_logic-1.2.2 features/step_definitions/blog_steps.rb