similar to: Having difficulty testing redirects with Rspec and Capybara

Displaying 20 results from an estimated 400 matches similar to: "Having difficulty testing redirects with Rspec and Capybara"

2013 Jan 09
2
Rails 3.2.10 and Rspec Tests that Fail?
The following tests used to reside in requests directory and used to work ... since I have upgraded to rails 3.2.9 and now 3.2.10 they fail. I have the following tests in(I am only showing the first two tests): spec/features/authentication_pages_spec.rb require ''spec_helper'' describe "Authentication" do subject { page }
2012 Jul 22
1
RSpec/rails & Capybara: #within
I''m new with Capybara and after a good amount of google, I still can''t figure out how the #within methods works! I can use it only if I call visit before? There''s no way to use it on a string, like the `page = Capybara.string(html_string)` trick? When describe a view, I want something like that: describe "path/to/view.html.erb" do it "should pass"
2011 Apr 26
1
new goodness, Capybara::RSpecMatchers in helper specs
This https://github.com/rspec/rspec-rails/commit/59793dcc349b64f4ebcf742606371001256c774d is exciting news!! ("this adds capybara matchers to view and helper specs") Now, if I just knew how to take advantage of it? Do I have to require something else in spec_helper? I have already added included gem ''rspec-rails'', ''~> 2.6.0.rc2'' gem
2010 Nov 26
0
Cucumber + Capybara + tiny_mce Problem
Hello I want to test the the tiny_mce using cucumber and capybara and I got a solution in the following thred " http://groups.google.com/group/ruby-capybara/browse_thread/thread/711d08ddceb9276?pli=1" but somehow I am getting the following error *private method `bridge'' called for #<Selenium::WebDriver::Driver:0x..fb55cd4f0 browser=:firefox> (NoMethodError)* Is there
2011 Nov 18
0
Capybara + Selenium + JS
Hi, I''ve recently been working with Capybara 0.4.0 and the bundled Selenium driver in Rails 2.3.8 with Ruby 1.8.7 to do integration testing with javascript. The problem I have is that Capybara''s page object does not seem to be affected by the Javascript, even though I can see the changes happening in the browser, they are not reflected in that object''s markup. Here is
2011 Apr 04
0
issue installing gem Capybara on Debian5 w ruby 1.9.2 ( Rails 3.0.5) => installing native extension
On this server I already installed it in the gemsets for Ruby 1.8.7 and Rails 2.3.11 without any problem ... but trying (many times .. ) to install in Ruby 1.9.2 (Rails 3.0.5) raises an error ... It''s not related to the gem itself as the gem doesn(t build any native extension .. but to one dependency... I don''t know where to start looking for ... here is the log message :
2012 Jul 19
0
Capybara and a post request
Hi there! In my app I have an entry page that is called with an post-request from another site. This post-request contains a parameter called key and is used for an app authorisation of that other site. How can I simulate such a behaviour in respect and capybara? In the moment I have a controller and action that serves me a Form where I fill in the key and click submit via capybara. But I think
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
2011 Jul 05
2
Using Capybara to select from a collection_select call (select tag)
I''m trying to use Capybara to test this. I have a step that goes When I select "Price Chopper" from "Organization" And the step definition is When /^(?:|I )select "(.+)" from "(.+)"$/ do |value, field| select(value, :from => field) end For some reason, I keep getting the error: cannot select option, no select box with id,
2012 Apr 06
0
i can not get current_user while writing test case with Rspec and Capybara
0 down vote favorite share [g+] share [fb] share [tw] I have to write test case for my one feature listing page and that feature index method has code like below def index @features = current_user.features end Now when i try to write test case for this then it throws error for ''undefined method features for nil class'' because it can not get the current user Now what i have
2012 Feb 18
0
Rails NameError : uninitialized constant RelationshipsController
I am trying to run a test of my app buy my relationships_controller_spec.rb file won''t run. Here''s the error I get: Exception encountered: #<NameError: uninitialized constant RelationshipsController> Here''s the code for my relationships_controller_spec.rb file: require ''spec_helper'' describe RelationshipsController do describe "access
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
2010 Sep 20
2
For Your Own Info: Rails 2.3.2 is incompatible with Cucumber (0.8.5), Capybara (0.3.9) and Selenium-webdriver (0.0.17)
Railers, I am running an application on Rails 2.3.2. For some reason within our organization, we wish to remain on this version of Rails. For BDD/Testing, we use Cucumber. So I installed Cucumber (0.8.5), Capybara (0.3.9) and Selenium-webdriver (0.0.17). But when I run Cucumber on any feature, I get an error saying *" wrong number of arguments (2 for 1) (ArgumentError)"*, (Check here
2010 Dec 16
12
Capybara + radio buttons
How do I select a radio button when both id and name are identical?: <input type="radio" name="BILFPB.bilPremieUppgifterFI.under24" tabindex="13" value="J24" checked="checked" id="forare">Ja <input type="radio" name="BILFPB.bilPremieUppgifterFI.under24" tabindex="14" value="N24"
2013 May 02
1
trouble-with-capybara-and-rspec-on-a-new-model-spec
I have searched a lot for a solution, but I could not find it! I am trying to make a rails application after watching Michael Hartl''s tutorial and when i fill data manually and submit it nothing happens and nothing records in the Mailers table and I am facing the following error: Failures: 1) Mailer pages mail us with valid information should send a mail Failure/Error: expect
2013 Jun 18
1
Getting rspec error: Net::SMTPServerBusy: Relay access denied
I''m trying to test registration emails (sent with devise), and I keep getting the error: Net::SMTPServerBusy: 454 4.7.1 <model_spec-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>: Relay access denied I''m running Rails 3.2.11 with Capybara, and I have (temporarily) chopped my spec_helper.rb and test.rb files down to the bare minimum, still getting the error above.
2008 Feb 04
1
Error on nil.build
I can''t figure out why I am getting an error for one of the tests below: ======================== describe AccountsController, "POST" do before :each do @user = mock_model(User) @account = mock_model(Account, :id => 1, :valid => true, :save => true, :users => mock("users", :build => @user)) Account.should_receive(:new).and_return(@account)
2013 May 12
10
Capybara with redirect
I am having an issue where a feature works fine but the corresponding test fails, and I can''t understand why. I created a mock application to demonstrate the problem. https://github.com/assafshomer/clear_button All it does is show an input form with a clear button. The clearing happens by redirecting back to the same form. It does clear it when you run the app, but the test for it
2010 Nov 30
4
Cucumber+Capybara rails 3 issue (Don't know where exactly)
When I''m executing cucumber tests, I noticed that sometimes rails app (in test env.) getting several the same requests (GET or POST) usually around 3, and it doesn''t render anything with empty HTTP status code. Have anyone met something similar to that issue? here is some example of log file: Started POST "/account" for 127.0.0.1 at 2010-11-30 22:34:17 +0200
2013 Feb 28
1
Validation Failed: Userkey has already been taken, Email has already been taken
Hi, I am using Factory girl with rspec and capybara for testing my rails appliction. I have the below code FactoryGirl.define do factory :user do |f| f.email "sss1 at gmail.com" f.userkey "12ssd345q62" end end When I run the test it is failing as "Validation Failed: Userkey has already been taken, Email has already been taken". What could be the reason for