search for: cucumber

Displaying 20 results from an estimated 273 matches for "cucumber".

2008 Dec 03
3
Intermittent Cucumber exception
Hi Anyone recognise this exception, and know what causes it to happen occasionally? Thanks Ashley Scenario: new story appears on feed # features/descriptions/ story_notification.feature:12 /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/cucumber/ broadcaster.rb:15:in `write'': Bad file descriptor (Errno::EBADF) from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/broadcaster.rb:15:in `puts'' from /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.1.10/bin/../lib/ cucumber/bro...
2009 Apr 26
9
Problems running features with Textmate Cucumber bundle
...d I''m working through the initial example. Although I''m a fairly experienced RSpec user, I''m stlll learning new tricks. Anyway, I''m going though the mastermind example, and everything is going well, except that I decided to also try out the Textmate bundle for Cucumber. I decided to use Ben Mabey''s fork on github since it seems to be the most evolved. When I try to run a feature with cmd-R, instead of actually running I see something like: Running: cucumber /Users/rick/mastermind/features/codebreaker_starts_game.feature --format=html false Cucumber r...
2009 Apr 27
2
uninitialized constant ActionController running Cucumber features in Aptana/RadRails IDE
I''m just starting on BDD. I installed the gems for webrats and cucumber. I also ran the following in the Ruby shell: >rake gems:install RAILS_EN=test >script/generate cucumber These commands seemed to create the expected features and lib folders in my project. I''m using the eclipse framework with Aptana and RadRails as my IDE. However, when I run: &...
2009 Mar 31
7
[Cucumber] Running single feature from command line
I am using Cucumber 0.2.3 and am having problems running a single feature. In particular, the cucumber Textmate bundle was not working so I traced it back and discovered that I could not run single files or features from the command line either. My setup has the following line in cucumber.yml default: -r feat...
2009 Mar 19
6
[Cucumber 0.2] Failure to use should
...initions/create_account_steps.rb:31 undefined method `be_blank'' for #<ActionController::Integration::Session:0x349994c> (NoMethodError) features/create_account.feature:10:in `And the account should be created'' I print out the account class, which is a AR::B. Why cucumber tells me it is a ActionController::Integration::Session? I use cucumber 0.2 and rspec 1.2 with Rails 2.3.2 Thanks Yi -- http://yiwenandsoftware.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachment...
2009 Nov 18
1
undefined method `register' for Polyglot:Module
...ec libraries in the load_path (not installed as a gem). Any ideas? What defines the register method? /home/jvandyk/dev/web/wpn_rails/../../rcommon/lib/test/treetop/lib/treetop.rb:16: undefined method `register'' for Polyglot:Module (NoMethodError) from /home/jvandyk/dev/rcommon/lib/test/cucumber/bin/../lib/cucumber/parser/treetop_ext.rb:2:in `require'' from /home/jvandyk/dev/rcommon/lib/test/cucumber/bin/../lib/cucumber/parser/treetop_ext.rb:2 from /home/jvandyk/dev/rcommon/lib/test/cucumber/bin/../lib/cucumber/parser.rb:4:in `require'' from /home/jvandyk/dev/rcommon/lib...
2010 Feb 26
0
ruby script/cucumber -tags producing a gem error
When I do "ruby script/cucumber" the tests run no issues. When I do the same thing but -tags tag_name I get a gem version error: Where is it coming from and why?? Using the default profile... RubyGem version error: rack(1.0.1 not = 1.1.0) (Gem::LoadError) F:/BACKUP/Backup/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:827:in `...
2012 Feb 02
1
Missing files with rails generate cucumber:install
when ranning cucumber:install and generate me this files <code> create config/cucumber.yml create script/cucumber chmod script/cucumber create features/step_definitions create features/support create features/support/env.rb exist lib/tasks create lib/tasks/cucumber.rake gsub config/database.yml gsub con...
2009 Feb 25
5
[Cucumber] pretty html output?
Cucumberists (and RSpec Classic users ;): How can we convert a Cucumber feature file into HTML with syntax highlighting? Not the test-runner output; that''s preprocessed so it does not match the input file... Tx! -- Phlip
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 compu...
2009 Mar 18
2
Cucumber failing with ''uninitialized constant Spec::Ruby''
...tivesupport-2.2.2/lib/ active_support/dependencies.rb:155:in `require'' from /Library/Ruby/Gems/1.8/gems/rspec-1.2.0/lib/spec/test/unit.rb:1 from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'' ... 25 levels... from /Library/Ruby/Gems/1.8/gems/cucumber-0.2.0/bin/../lib/cucumber/ cli/main.rb:68:in `require_files'' from /Library/Ruby/Gems/1.8/gems/cucumber-0.2.0/bin/../lib/cucumber/ cli/main.rb:34:in `execute!'' from /Library/Ruby/Gems/1.8/gems/cucumber-0.2.0/bin/../lib/cucumber/ cli/main.rb:20:in `execute'' from /Libr...
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/rs...
2008 Sep 29
3
rspec-ui overlap with cucumber?
Hi! I''m using cucumber + selenium and I love it. However I''m looking to add some methods (example: click_and_wait etc) to the lib. Therefore looked around a bit and I got two questions: Firstly about rspec-ui, I''m a little confused, does rspec-ui overlap with its propose with webrat with cucumber or I&...
2009 Sep 16
1
Problems while loading 'spec/stubs/cucumber'
Rodrigo Flores wrote: > Hi > > I''m reading the rspec book and I''m having problems when I require the > file ''spec/stubs/cucumber''. When I go to an IRB prompt and type > require ''spec/stubs/cucumber'' after requiring another libraries [1] I > get the false in ''spec/expectations'' and an error in > ''spec/stubs/cucumber''. The error message is [2]. Any idea...
2009 Mar 25
5
[Cucumber] ANN: Cucumber with pure Java
Big news for all Java programmers out there. Now you can use Cucumber with pure Java! That''s right, you don''t have to write a single line of Ruby! (1) All of your step definitions can be written as annotated methods in POJOs (Plain Old Java Objects). To get a taste of what this looks like, check out the simple example in the cucumber_java project...
2008 Nov 24
8
Cucumber Custom Logging
Where and how do you put custom logger statements in cucumber? I understood (more or less) how to do this in rspec in the spec_helper file but I do not know where to start with cucumber. I want to add a simple identifying text line in the log file to assist in picking through the output. Something akin to: Running Scenario: X Feature I should have this...
2009 Feb 06
6
RecordNotFound bubbling thru to cucumber
Hello, I have a controller action that raises a RecordNotFound exception if you''re not allowed to see something. In my global application controller (application.rb), I catch these and render the 404 template. But when I run cucumber (using webrat), it''s getting the full stacktrace (the step blows up). Any ideas why? I have consider_all_requests_local turned off in my test.rb. Jeff
2009 Feb 03
3
Rcov - Specifying rake tasks
I am trying to get a customized rcov rake task working. What I have so far looks like this: desc "Rcov code coverage reports" require ''rcov/rcovtask'' require ''spec/rake/spectask'' require ''cucumber/rake/task'' task :rcov => "rcov:all" namespace :rcov do Rcov::RcovTask.new(:all) do task :rcov => "rcov:cucumber" end Cucumber::Rake::Task.new(:cucumber) do |t| ... Spec::Rake::SpecTask.new(:rspec) do |t ... Rcov::RcovTask.new(:testuni...
2008 Nov 03
2
Cucumber and autotest
Hey all, Does anyone know how to disable the cucumber autotest support on a project? With this commit: http://github.com/aslakhellesoy/cucumber/commit/93470e2580b5e3cfe0c8eb3fce86e21bf8afa219 The cucumber features are worked into the autotest cycle automatically. This is cool, but on some projects I don''t think it fits well with my re...
2009 Apr 15
0
Ambigous error while running cucumber features
Hello, I was just trying out a cucumber-java example with selenium integrated. My feature file has two scenarios and while executing the command "cucumber features", It is executing the first scenario succesfully, but for the second scenario I am getting the ambiguity error (Cucumber::Ambiguous): Scenario: Find what I''...