Currently I have a like/dislike voting functionality that outputs in the following format:
like (#) dislike (#)
Where like and dislike are clickable links that update the total count of like/dislike votes (represented by (#))
I am writing a cucumber test to check the like/dislike counts are correct. I'd like to check
...
Then I sh...
I'm new at cucumber and capybara so maybe this is easy.
I'm using headers to check if a user is logged in or not and i'm having a problem when doing cucumber testing.
I use Capybara and Cucumber and a "add headers hack": http://aflatter.de/2010/06/testing-headers-and-ssl-with-cucumber-and-capybara/
The problem I have is that it only ...
I want to test the age of a user of my Rails application using cucumber. The feature definition look somewhat like following.
Scenario: Successful calculation of age
Given I set my date of birth to "1987-07-15"
Then my age should be "22"
Above feature definition will fail every year since the age of user will increase by one each ...
I've recently added html validation to my cucumber features. I'm using the gem be_valid_asset which works really well until Cucumber hits a @javascript flagged feature. This kicks in culerity (I've tried selenium for this as well) and then the html validation fails.
The reason the validation fails is that both culerity and selenium ap...
I'm using pickle 0.3.0 with rails, cucumber and mongoid. I do found that pickle0.3.0 automatically finds the ORM. But while I wrote a cucumber scenario and tested it, It didn't find any pickle steps. Here is the sample:
Scenario: logging in user
Given the following users exists
|name|
|John|
|white|
But didn't find pickle ste...
Hi, I'm little confused on how to use cuke's options.
I know that I can run spec and cucumber in two different console. But I want it to run both.
So, I can pass args/options for rspec like bundle exec autotest -c -f specdoc but if I pass cucumber options like --tags @wip --format pretty, it blows out.
So, how can I accomplish this??
...
I mostly followed these instructions to get things spun up:
http://lindsaar.net/2010/5/9/Getting-Rails-3-Edge-with-jQuery-RSpec-and-Cucumber-using-RVM
If I create a completely blank .feature file, running cucumber results in this error:
cucumber
wrong number of arguments (3 for 1)
(ArgumentError)
/gems/gherkin-2.0.2/lib/ghe...
I would like to get machinist, machinist_mongo, mongo_mapper, cucumber and pickle to play nice together.
Currently I have machinist with all my blueprints configured and am using cucumber to do BDD. So far so good. My problem is I am having to write custom cucumber steps for all of my machinist blueprints. It is not really a problem per...
Trying to follow this tutorial. Autotest fails with this error message:
sg $autotest
loading autotest/cucumber_rails_rspec2
Error loading Autotest style autotest/cucumber_rails_rspec2 (no such file to load -- autotest/rails_rspec2). Aborting.
Gem list:
abstract (1.0.0)
actionmailer (3.0.0.beta4)
actionpack (3.0.0....
I noticed this little tid-bit in the readme for pickle:
(The latest version of pickle supports multiple
blueprints, for earlier versions of machinist use pickle <= 0.1.10)
I'm running in to a situation where I want to create a user with admin privileges. I've got two machinist blueprints:
User.blueprint do
first_name
last_name
...
I want to test if I have 0, 1, 2 or 3 times a pictures ('foo.png') in a certain page with Cucumber.
How should I write the custom step?
Thanks
...
I'm hoping someone knows the answer to this, I'm running Cucumber from IronRuby and getting an IKVM exception. Stack trace is at the bottom. RSpec works fine.
Any ideas?
can't convert Array into java::util::List (TypeError)
C:/Program Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/gherkin-2.1.5-universal-dotnet/lib/gherkin/native...
I recently upgraded cucumber to version 0.8.5, but I'm getting some unexpected errors with Authlogic. As a precursor to many of my user interface tests I have a default 'Given I am logged in' method that logs a user in through the standard login interface and asserts that they were redirected to the home page. Prior to upgrading cucumber...
Hello everyone !
I am currently trying to use the Pickle gem for my cucumber test in ruby and rails. I use blueprints.
If I have a User class, with an id as primary key, and a "name" and a "best_friend_id" as attributes. How can I access to the id of the first User "Toto" to fill the best_friend_id field of "Titi" in my Pickle steps?
F...
I would like this custom step:
Then I should see the link 'foo'
and his opposite:
But I should not see the link 'foo'
In the page I can have something like:
lorem foo bar
or alternatively
lorem <a href=''>foo</a> bar
I need to test when 'foo' is a link and when isn't. Thank you.
...
Hello everyone,
i want to strip a quote in the following cucumber expression, but i get unknown step error
Then I should see "[\"20257\"]\n"
Cucumber suggested me this :(
Then /^I should see "([^"]*)"(\d+)\\"([^"]*)"$/ do |arg1, arg2, arg3|
pending # express the regexp above with the code you wish you had
end
Any ideas, how to s...
I'm currently trying to set up integration/acceptance testing for a new rails 3 application with cucumber and capybara. (I initially planed to use webrat, but it seems that it does not support rails 3, so I ended up with capybara)
I'm trying to get a basic login test working:
Feature: Login user
In order to access the non-public part...
I get this warning in step files on every Given, Then, When line:
ambiguous first argument; put parentheses or even spaces
...
Consider the following example:
Scenario: Create New Account (Everything cool)
Given I am not authenticated for "wellesley"
When I go to register for "wellesley"
And I fill in "Name" with "bill"
And I fill in "Email" with "[email protected]"
And I fill in "Password" with "please"
And I fill in "Password Confirmation" with "please"
And I ...
Hi,
I've a controller that defines the @projects variables to be displayed in the view.
There is any way to access to that projects in the cucumber step?
Note that this variables contains the paginated results, the idea is to test if the values are being displayed in the page.
I've tried to access the variable through assigns and cont...