search for: click_link

Displaying 9 results from an estimated 9 matches for "click_link".

2009 Mar 13
2
[webrat] click link by title doesn''t work
...inks by title. Am I missing something stupid? With steps below running in sequence, first passes, second fails Then /^I should see a view (\w+) details link$/ do |object| response.should have_tag("a[title=#{object}_details]") end When /^I follow view (\w+) details link$/ do |object| click_link "#{object}_details}" end I think click link should find by - innerHTML, with simple   handling - title - id - class Does anyone have any contradictory opinions? In the meantime I''ll have a bash at writing a patch for this Cheers Andrew -------------- next part -...
2009 Jan 09
1
Is there a problem with webrat?
...in my test: my_entity = Entity.find_by_entity_name( "my entity number #{row.hll_words_to_i}") within("div#" + dom_id(my_entity, :list)) do puts "within method executed for div" end within("div#" + dom_id(my_entity, :list)) do click_link "Destroy Entity" end The first within method prints the trace message The second within method call blows up with: within method executed for div When I delete the "first" entity # features/app/models/entities/step_definitions/entity_steps.rb:128 You have...
2007 Sep 25
7
simple story, extract link
hi, I just started fooling around with story runner, thought I''d start with a dead simple scenario: The first thing I do when describing a site to someone is go to the home page, and begin exploring public pages from there. So, that seems like a good first story to spec out. And I''d really like to extract the actual link from the rendered page (rather than just
2007 Jan 26
0
Problems with assert_select in integration tests
...complete integration test. The failure occures on the first assert_select in the second call to click_button. require "#{File.dirname(__FILE__)}/../test_helper" class AccountCreationTest < ActionController::IntegrationTest def test_personal_account_creation goto_home_page click_link "Create Account", "/account/new_account_step_one" click_button "Next Step", "/account/new_account_step_one", :user=>{:username=>"TestUser", :password=>''T3st!ng'', :password_confirmation=>''T3st!ng'&...
2007 Oct 24
3
Working with the response DOM
Hi, Anyone know a way to traverse/query the DOM in a response? I''m trying to write reusable story step implementations and as much as possible want to work with the actual response from a previous GET. As an example, I often have buttons that POST/PUT a hidden value. My goal is a reusable step implementation that takes the button label and works the existing response DOM to make an
2012 Jun 14
3
response.should have_content("1 movie") does not seem to work for me
Hey everybody I have worked quite to near the end of The RSpec Book, but now I''m having some troubles. I''m trying to get the last few Cucumber steps to work, which are: Then /^Caddyshack should be in the Comedy genre$/ do visit genres_path click_link "Comedy" save_and_open_page response.should have_content("1 movie") response.should have_content("Caddyshack") end So far everything''s working, but the have_content("1 movie") doesn''t, although I have hard-coded the string into the vi...
2012 Feb 16
0
Upgrading from 3.2.0 to 3.2.1: Wrong Number of Arguments
Simple spec passes in 3.2.0: it "destroys an album" do 3.times { Factory(:album, photo_library: @photo_library) } visit photo_library_path(@photo_library) find("h3").click_link ''Delete'' find("#notice").should have_content("Album deleted successfully") Album.count.should eq 2 end But fails in 3.2.1 with: 1) Albums destroys an album Failure/Error: login_admin ArgumentError: wrong number of arguments (0 for 1)...
2007 Apr 07
5
Integration Specs On Rails
Now that RSpec is nearing 1 dot oh, are there any plans to implement an integration testing equivalent in RSpec On Rails?
2007 Jan 04
5
Mashup Tutorial
Hi: I am looking for a good hands on web mashup tutorial? or books for that matter.. Google gives me bits and pieces of the info but not any step by step or hands on tutorial.. Thanks a bundle -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk"