Sha256: bd9a78a0a9cbc407bffe33f32ed93cac91387ad2b62523d0c1f9b26f0fda6ed8

Contents?: true

Size: 919 Bytes

Versions: 45

Compression:

Stored size: 919 Bytes

Contents

Given /^content exists$/ do
  @_content = Factory(:page_a)
end

When /^I create a new root$/ do
  visit new_noodall_admin_node_path
end

Then /^I should be able select a template from the following:$/ do |table|
  table.hashes.each do |row|
    visit new_noodall_admin_node_path
    choose(row['Template'])
    fill_in("Title", :with => "A title")
    click_button "Create"
    page.should have_content "#{row['Template']} 'A title' was successfully created."
  end
end

Then /^I should see a tree style list that contains all content$/ do
  #Roots
  page.should have_css("ol#sitemap-node-tree-root li:nth(#{Noodall::Node.roots.count})")

  page.should have_css("ol#sitemap-node-tree-root li li")

end


Then /^I should see a page of xml$/ do
  page.should have_xpath("//urlset")
end

When /^I view the page "([^"]*)" as "([^"]*)"$/ do |title, format|
  visit node_path(Noodall::Node.find_by_title(title), format)
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
noodall-ui-0.3.20 features/step_definitions/node_steps.rb
noodall-ui-0.3.19 features/step_definitions/node_steps.rb
noodall-ui-0.3.17 features/step_definitions/node_steps.rb
noodall-ui-0.3.16 features/step_definitions/node_steps.rb
noodall-ui-0.3.15 features/step_definitions/node_steps.rb
noodall-ui-0.3.14 features/step_definitions/node_steps.rb
noodall-ui-0.3.13 features/step_definitions/node_steps.rb
noodall-ui-0.3.12 features/step_definitions/node_steps.rb
noodall-ui-0.3.11 features/step_definitions/node_steps.rb
noodall-ui-0.3.8 features/step_definitions/node_steps.rb
noodall-ui-0.3.7 features/step_definitions/node_steps.rb
noodall-ui-0.3.6 features/step_definitions/node_steps.rb
noodall-ui-0.3.5 features/step_definitions/node_steps.rb
noodall-ui-0.3.4 features/step_definitions/node_steps.rb
noodall-ui-0.3.3 features/step_definitions/node_steps.rb
noodall-ui-0.3.2 features/step_definitions/node_steps.rb
noodall-ui-0.3.1 features/step_definitions/node_steps.rb
noodall-ui-0.3.0 features/step_definitions/node_steps.rb
noodall-ui-0.2.3 features/step_definitions/node_steps.rb
noodall-ui-0.2.2 features/step_definitions/node_steps.rb