Created
          November 14, 2012 12:40 
        
      - 
      
- 
        Save jnicklas/4071870 to your computer and use it in GitHub Desktop. 
Revisions
- 
        jnicklas created this gist Nov 14, 2012 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ Capybara.add_selector :record do xpath { |record| XPath.css("#" + ActionController::RecordIdentifier.dom_id(record)) } match { |record| record.is_a?(ActiveRecord::Base) } end This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ post = Post.first find(post).click_link("Hello") within post do fill_in("What's going on here", :with => "Holy shit this works??") click_button("Yes") end