Sha256: 7fffd96ce02d91f60e58356f7d6ee3b9f02cb049fe53e228209fb309a847b0aa
Contents?: true
Size: 1.4 KB
Versions: 12
Compression:
Stored size: 1.4 KB
Contents
When /^I fill in the "([^\"]*)" content with "([^\"]*)"$/ do |part, content| standard_part_name = "part_#{part.to_slug}_content" begin fill_in(part, :with => content) rescue Webrat::NotFoundError fill_in(standard_part_name, :with => content) end end When /^I fill in the "([^\"]*)" content with the text$/ do |part, content| standard_part_name = "part_#{part.to_slug}_content" begin fill_in(part, :with => content) rescue Webrat::NotFoundError fill_in(standard_part_name, :with => content) end end Then /^there should be an? "([^\"]*)" part$/ do |name| response.should have_tag("#page_#{name.to_slug}") response.should have_tag("#part-#{name.to_slug}") response.should have_tag("textarea#part_#{name.to_slug}_content") end When /^I edit the "([^\"]*)" page$/ do |name| page = pages(name.to_sym) visit "/admin/pages/#{page.id}/edit" end Given /^I create a homepage$/ do steps %Q{ When I go to the "pages" admin page And I follow "New Homepage" Then I should see "New Page" And there should be a "body" part And there should be an "extended" part When I fill in "Page Title" with "My site" And I fill in "Slug" with "/" And I fill in "Breadcrumb" with "My site" And I fill in the "body" content with "Under Construction" And I fill in the "extended" content with "foobar" And I select "Published" from "Status" And I press "Create page" } end
Version data entries
12 entries across 12 versions & 1 rubygems