similar to: [Cucumber, Merb, Webrat] undefined method ''response'' for Merb::Test::World::Webrat

Displaying 20 results from an estimated 300 matches similar to: "[Cucumber, Merb, Webrat] undefined method ''response'' for Merb::Test::World::Webrat"

2009 Jan 13
2
Cucumber newbie gets Webrat::Se ssion (LoadError)
Just trying to get cucumber/webrat going and so after following the installation process here http://wiki.github.com/aslakhellesoy/cucumber/ruby-on-rails i wrote a quick feature and when I rake features, I get the following in the console: c:/InstantRails-2.0-win/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/acti ve_support/dependencies.rb:262:in `load_missing_constant'': Expected
2009 Jan 09
1
Is there a problem with webrat?
webrat (0.3.4) I have this in the view: <div id="list_entity_1"> <tr> <td>Just An Entity</td> <td>000001</td> <td id="show_entity_1"><a href="/entities/1">Show Entity</a></td> <td id="edit_entity_1"><a href="/entities/1/edit">Edit Entity</a></td>
2009 Feb 04
2
Can cucumber/webrat set a value on a hidden field
I am using auto_complete to provide a list of persons from which the user can select one. On selection from the auto_complete list, a hidden field is updated with the id of the selected person. This is all wrapped in a form, that then can be submitted by the user (by clicking the provided submit button). On submission, the person (based on the id in the hidden field) is added to a group. I assume
2013 Oct 09
0
getting selenium working with jruby/sinatra/cucumber/webrat on windows
I am trying to run cucumber/webrat with Sinatra on Jruby 1.7.3 (1.9.3) on Windows. It seems to work ok, but when I try to add selenium to webrat. I get the error shown below. It seems like it thinks it is in a linux environment or something as the error happens when it tries to start selenium server and there is a "&" at the end of the argument chain. I took a look at capybara
2009 Apr 29
1
Cucumber/Webrat/Selenium + SSL?
Has anybody had any luck getting Cucumber, Webrat and Selenium to play nicely together for SSL sites? My test environment: - nginx front-end accepting SSL requests, proxying them to mongrel back-end - mongrel back-end accepting normal HTTP requests - application routes configured with ":protocol => ''https''" so that URLs generated with "_url"
2011 Aug 09
0
Devise, RSpec and Webrat
My app is builded with rails 2.3.12, rspec-rails 1.3.2, webrat 0.7.3. My spec_helper.rb ENV["RAILS_ENV"] ||= ''test'' require File.expand_path(File.join(File.dirname(__FILE__),''..'',''config'',''environment'')) require ''spec/autorun'' require ''spec/rails'' require
2008 Jun 24
1
Suggestions on how to use stub_model with webrat?
Hi all, I am using story runner with webrat, but I am not sure how to incorporate stub_model into my tests. The webrat steps only care about the user interface and have nothing to say about interaction with the database. Following Ben Mabey, I have a line in my story like: "When clicks the Create button" And a step like: When "clicks the $button button" do |button|
2011 Apr 19
1
RSpec/Webrat Checking output is properly escaped
I want to test that the JSON response from a create action is sanitized properly, but rspec or webrat appears to be parsing the output into proper HTML chars instead of escaped characters. I have verified that it escapes properly in the regular browser json response. The relevant RSpec test code is: include ActionView::Helpers::TextHelper include ActionView::Helpers::UrlHelper it
2009 Mar 04
5
Sinitra 0.9.1 Webrat 0.4.2 Cuc problem
Have created sample sinatra cucumber app as suggested on wiki. Tried both env.rb configurations from there and aslaks git repo. With this combination of gems I get the following error doing basic cuc tests When I visit ''/foo'' # features/step_definitions/general.rb:1 PATH_INFO must start with / (Rack::Lint::LintError)
2009 Feb 05
3
[Cucumber, Webrat] Error backtraces shown as HTML in console
Since upgrading to Cucumber 0.1.99.19 I''ve noticed that the backtraces appearing in the console output are of the form: Page load was not successful (Code: 500): Followed by the dump of the rails error page. That page looks fine in a browser, and it''s helpful enough to see it when save_and_open_page does its thing, but I''m pretty used to reading plain old
2012 Jun 14
1
Cucumber/RSpec ::: Capybara? Webrat What am I using??
Hey everybody I''m currently reading through the Pragmatic Programmers RSpec book, and I really enjoy it. But I’m facing some problems because of the fact that the book is already some years old, I guess. I have installed rvm and use Ruby 1.9.3, and I didn’t really get some Rails code examples to work properly, so I tried it with a 1.8.7 installation, but there I had some other problems
2009 Mar 13
2
[webrat] click link by title doesn''t work
Webrat 0.4.2 doesn''t seem to allow you to click links 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}"
2009 May 06
0
Cucumber, Webrat, RSpec and Mechanize for Non-Ruby Apps
The folks here have given me the task of figuring out if cucumber can be used successfully to test some of our apps. I have the latest versions of rails, mechanize, cucumber webrat and rspec installed. #/cuketest/features/google.feature Feature: New PC In order to get a sweet new PC As a apple nerd I want to find apple.com Scenario: Get a sweet new computer Given I visit
2008 Dec 02
4
Using Cucumber with latest Webrat
I added cucumber to my rails project using the following commands: git submodule add git://github.com/aslakhellesoy/cucumber.git \ vendor/plugins/cucumber ruby script/generate cucumber git submodule add git://github.com/brynary/webrat.git \ vendor/plugins/webrat git submodule add git://github.com/dchelimsky/rspec.git \ vendor/plugins/rspec git submodule add
2012 Aug 23
5
wat is diff between webrat and capybara?????
now i am using cucumber.........and i get two topic webrat and capybara........wat is the diff between them???????which one is good?????which one i use????? Regards Fahim Babar Patel -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2007 Nov 29
5
Webrat 0.1.0 released - Ruby Acceptance Testing for Web applications
Hey guys, We developed this plugin while writing my first real set of RSpec stories. It''s still missing a lot of functionality, but it''s useful to us as is, so I''m shipping 0.1.0. (Patches welcome. :) ) Code is available at: http://svn.eastmedia.net/public/plugins/webrat/ What do you think? -Bryan Here''s the README:
2008 Jun 09
6
Selenium/Watir usage along side Webrat in story testing
This is related to Selenium/Watir usage along side webrat in story testing. MHS_Testing and Rspec-ui provide some great help for testing through frameworks like Selenium/Watir. But there is something missing, Webrat has changed the landscape somewhat with Acceptance Tests/Story Driven development. Now I have a choice: 1. Tests and rails process run as one test process (Webrat) 2. Use
2008 Mar 10
0
Vancouver.rb Q&A with Brock Whitten on Rails, Getting Off Rails (Merb), PmpknPi (Blog in Merb) and More (Part I)
Hello, I''ve published a Q&A in the Vancouver.rb series with Brock Whitten. Questions include: * How did you get started with Ruby on Rails? What makes Ruby on Rails a great choice for developing web applications/sites? * Can you tell us some challenges you''ve faced developing using Ruby on Rails? * Off the Rails - Can you tell us a little bit about Merb? How
2008 Mar 10
0
Vancouver.rb Q&A with Brock Whitten on Rails, Getting Off Rails (Merb), PmpknPi (Blog in Merb) and More (Part I)
Hello, I''ve published a Q&A in the Vancouver.rb series with Brock Whitten. Questions include: * How did you get started with Ruby on Rails? What makes Ruby on Rails a great choice for developing web applications/sites? * Can you tell us some challenges you''ve faced developing using Ruby on Rails? * Off the Rails - Can you tell us a little bit about Merb? How
2008 Sep 30
4
Using the response object in stories
I have this statement in the layout of my application (using haml) - if request.env["HTTP_USER_AGENT"].include?("MSIE") = stylesheet_link_tag ''blueprint/ie.css'' = stylesheet_link_tag ''confirm_ie.css'' The problem is that request.env["HTTP_USER_AGENT"] is nil when I go to some page in the features I write with cucumber and webrat