SHARE
TWEET

Untitled

a guest Dec 6th, 2012 12 Never
  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")
RAW Paste Data
Top