webrat Questions

8

Solved

Just switched from Cucumber+Webrat to Cucumber+Capybara and I am wondering how you can POST content to a URL in Capybara. In Cucumber+Webrat I was able to have a step: When /^I send "([^\"]*)" to...
Schultz asked 3/11, 2010 at 4:23

8

I'm using webrat with cucumber and I would like to test if a radio button is checked already when I am on a page. How can I do that ? I didn't find any step in webrat which can do that.
Nape asked 23/7, 2009 at 19:43

6

Solved

I'm writing some RSpec tests for my Rails 3 application and trying to switch from Webrat to Capybara. So far so good but the application uses HTTP basic auth to authorize my admin user, any idea ho...
Grieco asked 1/12, 2010 at 22:54

3

Solved

I am getting started with RSpec. I have a new rails 3 app which uses the HTTP_ACCEPT_HEADER or the request 2 letter subdomain to set the application language and redirect accordingly. I am successf...
Variance asked 9/2, 2011 at 16:53

4

Solved

I'm trying to define a step to test the value of alt text of an image using Capybara and CSS selectors. I wrote one for input values based on the readme examples: Then /^I should see a value of "...
Decorous asked 14/5, 2010 at 22:48

7

Solved

I started migrating from cucumber + webrat to cucumber + capybara. Now the behavior of "I should see " seems to be somewhat different. Most of these fail now, although I didn't change anything on t...
Alvar asked 10/3, 2010 at 1:46

11

Solved

I am working on some Cucumber stories for a 'sign up' application which has a number of steps. Rather then writing a Huuuuuuuge story to cover all the steps at once, which would be bad, I'd rather...
Momus asked 13/8, 2009 at 12:52

3

Solved

Is there a way to do integration tests with Rspec without using Cucumber? I prefer using just plain old Webrat.
Sensitize asked 10/6, 2009 at 4:55

5

Solved

is it possible to follow a link by it's class name instead of the id, text or title? Given I have (haha, cucumber insider he?) the following html code: <div id="some_information_container"> ...
Stoichiometry asked 20/10, 2009 at 6:48

1

Solved

I'm trying to work through http://railscasts.com/episodes/155-beginning-with-cucumber which basically teaches how to use Cucumber within Rails applications. I installed all missing gems and runni...
Decontaminate asked 14/12, 2011 at 10:58

2

Solved

I've been using Capybara for integration/request testing, but have only just realised I can't do view testing with it. This SO answer suggests Webrat and Capybara can be used in tandem; but the RS...
Avoidance asked 17/5, 2011 at 4:13

3

Solved

I am learning how to write tests with cucumber/webrat. One of my test scenarios is set to test form validation (leaving field(s) empty). Strangely enough, fields that I do not fill-in with fill_in ...
Geosynclinal asked 14/1, 2011 at 9:40

4

Solved

I'm writing an integration test for a rails application using webrat. After filling out a form, the user presses submit and an account is created. click_button "Submit" assert_contain "Your Accoun...
Undervalue asked 4/6, 2010 at 13:1

3

Solved

When i run my features i get this error: undefined method `visit' for #<Cucumber::Rails::World:0x81b17ac0> (NoMethodError) This is the relevant part of my Gemfile. group :development, :te...
Suribachi asked 23/8, 2010 at 8:56

2

Solved

In Cucumber, I'm trying to create a step like this: Then I should see "Example business name" in the "Business name" input I'd like the "Business name" input to be defined as "the input whose la...
Excitability asked 11/11, 2010 at 18:32

2

Solved

I am using Cucumber for BDD development in my Ruby on Rails project and I'm running into some confusion on how the path.rb handles paths used in rails applications. Given I have: class Parent &lt...
Draw asked 15/1, 2010 at 19:41

2

Solved

I'm new to Cucumber and have been stepping through a railscast by Ryan Bates. http://railscasts.com/episodes/155-beginning-with-cucumber Unfortunately my scenario is failing where the railscast p...
Vertex asked 25/1, 2010 at 22:57

1

Solved

I am learning Cucumber and Webrat with Rails and would like some advice on the best way to test an "edit" form. When I browse to a user's profile I am presented with an edit form with the user's in...
Thomey asked 23/9, 2009 at 5:27

3

Solved

The scenario is as follows. My Order model has an after_create that contacts a remote payment gateway to retrieve a payment URL. In my Cucumber tests I don't want to perform this action, but return...
Ellison asked 7/9, 2009 at 9:44

1

Solved

I have been using Cucumber and Webrat for a while. I now need to start writing behaviour that involve AJAX interactions so I was thinking to use the Selenium adapter for Webrat. Can anyone point ou...
Laywoman asked 4/9, 2009 at 10:5
1

© 2022 - 2024 — McMap. All rights reserved.