Sha256: 74693bc3ef6f3203ea66736c1c8820d1944224a73acfcc51907ae56793c59ccd

Contents?: true

Size: 804 Bytes

Versions: 2

Compression:

Stored size: 804 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
  save_and_open_page
  page.should have_xpath("//urlset")
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
noodall-ui-0.0.11 features/step_definitions/node_steps.rb
noodall-ui-0.0.10 features/step_definitions/node_steps.rb