cucumber

autospec and missing gem

Hi, i've got a strange behavior or autospec. On autospec run i see in console /opt/local/bin/ruby /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.7.3/bin/cucumber --profile autotest-all --format rerun --out /var/folders/xx/xxbiSMYpEjesle1hezvfDU+++TI/-Tmp-/autotest-cucumber20100603-46558-rwbmlp-0 Missing these required gems: cucumber-ra...

How do I disable a feature in specflow (Gherkin) without deleting the feature?

I have some SpecFlow features (using the Gherkin syntax) and I would like to temporarily disable the feature to prevent its tests from running? Is there an attribute I can mark the feature with to do this? I'm guessing that something that works with Cucumber might also work with SpecFlow. ...

Rails Cucumber URL hosts

So... I have this URL: example.com which works in my browser, cause in my hosts file i have it set to 127.0.0.1 example.com And that works in my browser... but not in cucumber. Any ideas? ...

Executing cucumber in Rails results in error

I am trying to learn ruby on rails, and am trying to set up cucumber. I get this error when trying to run it. I think the picture may say more than I could. ...

How to assert on number of html table rows in ruby using capybara + cucumber

I am trying to get to grips with BDD web development in Ruby using cucumber + capybara and I am stuck at what should be an easy task - just to check the number of rows in a table. The intention of what I'm trying to achieve is something along the lines of: page.should have_xpath("//table[@id='myTable']") find("//table[@id='myTable']/tr"...

How do I mock an IP address in cucumber/capybara?

I'm using Cucumber and Capybara and I'd like a way to simulate the request IP address, like this: Given the request ip address is "10.1.2.3" ...

Cucumber failed scenarios not providing details (Ubuntu)

When I run cucumber from my Ubuntu server I don't get details on why the scenario is failing. For example here is what I get: ..... cucumber features/messaging.feature:6 # Scenario: Joe can view his inbox cucumber features/messaging.feature:14 # Scenario: Joe can send a message cucumber features/messaging.feature:26 # Scenario: Joe can ...

Problem with cucumber

I want to make rails app which will require minimum gems. I freeze gems into app and try to run cucumber's test and I've got the an error. Below is sequence of my actions. What I do wrong? rails cucumber && cd cucumber rake rails:freeze:gems add at the end of config/environments/test.rb: config.gem 'gherkin' config.gem 'cucumber-rail...

Cucumber Failing with Nokogiri

I just started using Cucumber and in the simplest of scenarios I throw the following error: undefined method has_key?' for #<Nokogiri::XML::Element:0x10677a400> (NoMethodError) ./features/step_definitions/web_steps.rb:36:in/^(?:|I )fill in "([^"])" with "([^"])"$/' features/authentication.feature:9:in `When I fill in "user_name" with "J...

Cucumber could not find table; but it's there. What is going on?

I'm working with cucumber and I'm running into difficulties. When I run "cucumber features", I am met with errors, cucumber is unable to find my requests table. What obvious mistake am I making? Thank you in advance! Bash: justin-zollarss-mac-pro:conversion justinz$ cucumber features Using the default profile... /Users/justinz/.gem/r...

changing the db used with cucumber to the _test db instead of _development

For whatever reason, my cucumber is using my _development db instead of my _test db. How do I change that? This is what my database.yml says test: &test adapter: mysql encoding: utf8 database: myapp_test but i get the error database configuration does not specify adapter This is also at the bottom.... I can only assume that t...

Using custom Selenium server on capybara

I'm trying to use capybara and Selenium but with custom server for Selenium, for example I want to route the server to saucelabs.com, is anyone here are have try it before? Thanks b4 ...

Ruby on Rails: test db is persisting data. I'm using Cucumber, how do I clear the DB after each scenario?

Title says it all. Preferably, I'd like something to go in this method defined in support/env.rb After do |scenario| end ...

Ruby on Rails: Cucumber: how to reset the db after each scenario?

So I am in my test environment now, in the terminial, rake db:test:prepare clears the db... but not when i run it from the code And I have this in features/support/env.rb: Before do task :build_all do [ :debug, :release ].each do |t| $build_type = t Rake::Task["db:test:prepare"].reenable Rake::Task["...

Running a cucumber feature multiple times

Hi, I'm trying to run a cucumber feature multiple times (i.e 500 times). Is there a way of doing this than me having to type in the same command everytime? I'm guessing this can be done using Rake? I'm not an expert in using rake or cucumber. Will appreciate your help. Thanks ...

Ruby on Rails: Cucumber: how do I replace text in a field?

I want to put text into a field that has been autofilled. The traditional When I fill in "ntoheu" with "nthoeu" seems not to work Iam also using capybara, and i feel that its ability to successfully insert text into fields is lacking. ...

How do you mark a Cucumber Scenario as Pending

How do I mark a cucumber scenario as pending so it doesn't get counted as a passed? Scenario: Guest should not see edit link # pending implementation Shouldn't I be able to mark is as pending? ...

Cucumber's ANSI colors messing up emacs compilation buffer

When working in Emacs, I use the compile command (F12 by default) to run programs. When I run Cucumber in Emacs, Cucumber spits out ANSI colors that the Emacs compilation mode doesn't interpret. The result is ugly and hard to read. Here's a snippet of the *compilation* buffer showing the ugly: ^[[31m(::) failed steps (::)^[[0m The ...

Installing Cucumber with Ironruby

I'm trying to install Cucumber with ironruby. I followed instructions from http://wiki.github.com/aslakhellesoy/cucumber/ironruby-and-net . It downloads version 0.8.3 of cucumber and version 2.0.2 of gherkin. When i run cucumber i get the following error: c:/ironruby/lib/ironruby/gems/1.8/gems/gherkin-2.0.2-universal-dotnet/lib/gherki ...

Ruby on Rails: Cucumber: Test that only passes when ran by itsself?

I'm also using Capybara. I have a bunch of test cases.. and two of them only pass when I run the tests separate from rake cucumber:all or cucumber features I have my testing set up so that the DB only clears as one of the above commands starts, rather than finishes, so that I can play with everything after the tests have ran. What's re...