features/step_definitions/site_steps.rb in visage-app-0.2.7 vs features/step_definitions/site_steps.rb in visage-app-0.3.0

- old
+ new

@@ -5,11 +5,11 @@ visit(link_text) end Then /^I should see a list of graphs$/ do doc = Nokogiri::HTML(response_body) - doc.search('div#profile div.graph').size.should > 1 + doc.search('div#profile div.graph').size.should > 0 end Then /^I should see a list of profiles$/ do doc = Nokogiri::HTML(response_body) doc.search('div#profiles ul li').size.should > 1 @@ -22,6 +22,15 @@ unsorted = profiles.map { |p| p.text.strip } sorted = profiles.map { |p| p.text.strip }.sort unsorted.should == sorted +end + +Then /^I should see a profile heading$/ do + doc = Nokogiri::HTML(response_body) + doc.search('div#profile h2#profile_name').size.should == 1 +end + +Then /^show me the page source$/ do + puts response_body end