Sha256: 37b0e76599385ba5156f070815c42c79b1c6633f6c25546fd6bbe01715f9424d

Contents?: true

Size: 564 Bytes

Versions: 15

Compression:

Stored size: 564 Bytes

Contents

When /^I create the page "([^"]*)" menu item$/ do |page_name|
  within "div#menu_item_page_form" do
    select page_name, :from => "menu_item_navigable_id"
    click_button "Save Menu Item"
  end
end

When /^I create the category "([^"]*)" menu item$/ do |category_name|
  within "div#menu_item_category_form" do
    select category_name, :from => "menu_item_navigable_id"
    click_button "Save Menu Item"
  end
end

Then /^I should see "([^"]*)" in the list of menu items$/ do |text|
  within "div#menu_item_tree" do
    page.should have_content(text)
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
navi-0.2.1 features/step_definitions/menu_item_steps.rb
navi-0.2.0 features/step_definitions/menu_item_steps.rb
navi-0.1.4 features/step_definitions/menu_item_steps.rb
navi-0.1.3 features/step_definitions/menu_item_steps.rb
navi-0.0.17 features/step_definitions/menu_item_steps.rb
navi-0.0.16 features/step_definitions/menu_item_steps.rb
navi-0.0.15 features/step_definitions/menu_item_steps.rb
navi-0.0.14 features/step_definitions/menu_item_steps.rb
navi-0.0.13 features/step_definitions/menu_item_steps.rb
navi-0.0.12 features/step_definitions/menu_item_steps.rb
navi-0.0.11 features/step_definitions/menu_item_steps.rb
navi-0.0.10 features/step_definitions/menu_item_steps.rb
navi-0.0.9 features/step_definitions/menu_item_steps.rb
navi-0.0.6 features/step_definitions/menu_item_steps.rb
navi-0.0.2 features/step_definitions/menu_item_steps.rb