Sha256: 7b7a2f24dc363e1117e76aa3acf8a77ff327bf1a6f2e85f2725aed5c0a1588d8

Contents?: true

Size: 631 Bytes

Versions: 1

Compression:

Stored size: 631 Bytes

Contents

When /^I fill in the "([^\"]*)" content with "([^\"]*)"$/ do |part, content|
  fill_in("part_#{part.to_slug}_content", :with => content)
end

When /^I fill in the "([^\"]*)" content with the text$/ do |part, content|
  fill_in("part_#{part.to_slug}_content", :with => content)
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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
radiant-1.0.0.rc1 features/step_definitions/admin/pages_management_steps.rb