Sha256: 919cd570e9666e3be48eedaf07d7fbd2d97b0cdc2dc48323aae0878df31e89f4
Contents?: true
Size: 1.02 KB
Versions: 36
Compression:
Stored size: 1.02 KB
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 => format) end Then /^I should see (\d+) nodes?$/ do |count| page.should have_selector "tr.node", :count => count.to_i end
Version data entries
36 entries across 36 versions & 1 rubygems