Pastebin launched a little side project called HostCabi.net, check it out ;-)Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 6th, 2012  |  syntax: None  |  size: 0.24 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Class PublishPage
  2.   def tag
  3.   #some steps left out
  4.   @tag = "123"
  5.   end
  6.  
  7.   def verify_tag
  8.   #some steps left out
  9.   @tag.should include "2"
  10.   end
  11. end
  12.        
  13. include RSpec::Matchers
  14.        
  15. on_page(PublishPage).the_displayed_tag.should include("2")