Sha256: 14af93dbfbb56c871aa21f7aa006052fe693175edf92d2b77c771d0f7c4cea27

Contents?: true

Size: 604 Bytes

Versions: 19

Compression:

Stored size: 604 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
  Blog.destroy_all
  Blog.create(:title => 'Default Blog', :desired_slug => 'my-blog', :description => 'My blog description')
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.destroy_all
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
blog_logic-1.2.1 features/step_definitions/blog_steps.rb
blog_logic-1.2.0 features/step_definitions/blog_steps.rb
blog_logic-1.1.9 features/step_definitions/blog_steps.rb
blog_logic-1.1.8 features/step_definitions/blog_steps.rb
blog_logic-1.1.7 features/step_definitions/blog_steps.rb
blog_logic-1.1.6 features/step_definitions/blog_steps.rb
blog_logic-1.1.5 features/step_definitions/blog_steps.rb
blog_logic-1.1.4 features/step_definitions/blog_steps.rb
blog_logic-1.1.3 features/step_definitions/blog_steps.rb
blog_logic-1.1.2 features/step_definitions/blog_steps.rb
blog_logic-1.1.1 features/step_definitions/blog_steps.rb
blog_logic-1.1.0 features/step_definitions/blog_steps.rb
blog_logic-1.0.0 features/step_definitions/blog_steps.rb
blog_logic-0.7.7 features/step_definitions/blog_steps.rb
blog_logic-0.7.6 features/step_definitions/blog_steps.rb
blog_logic-0.7.5 features/step_definitions/blog_steps.rb
blog_logic-0.7.4 features/step_definitions/blog_steps.rb
blog_logic-0.7.3 features/step_definitions/blog_steps.rb
blog_logic-0.7.2 features/step_definitions/blog_steps.rb