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

Version Path
blog_logic-1.4.11 features/step_definitions/blog_steps.rb
blog_logic-1.4.10 features/step_definitions/blog_steps.rb
blog_logic-1.4.9 features/step_definitions/blog_steps.rb
blog_logic-1.4.8 features/step_definitions/blog_steps.rb
blog_logic-1.4.7 features/step_definitions/blog_steps.rb
blog_logic-1.4.6 features/step_definitions/blog_steps.rb
blog_logic-1.4.5 features/step_definitions/blog_steps.rb
blog_logic-1.4.4 features/step_definitions/blog_steps.rb
blog_logic-1.4.3 features/step_definitions/blog_steps.rb
blog_logic-1.4.2 features/step_definitions/blog_steps.rb
blog_logic-1.4.1 features/step_definitions/blog_steps.rb
blog_logic-1.4.0 features/step_definitions/blog_steps.rb
blog_logic-1.3.1 features/step_definitions/blog_steps.rb