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