Skip to content

Instantly share code, notes, and snippets.

@cloudbring
Created December 8, 2011 23:08
Show Gist options
  • Save cloudbring/1449160 to your computer and use it in GitHub Desktop.
Save cloudbring/1449160 to your computer and use it in GitHub Desktop.
Capybara + Cucumber + Padrino config issue
± |t4 ✗| → padrino rake spec --trace
=> Executing Rake spec --trace ...
** Invoke spec (first_time)
** Invoke spec:models (first_time)
** Execute spec:models
/Users/e/.rvm/rubies/ruby-1.9.2-p290/bin/ruby -S rspec -fs --color ./spec/models/repository_spec.rb
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/capybara-1.1.2/lib/capybara/cucumber.rb:6:in `<top (required)>': undefined method `World' for main:Object (NoMethodError)
from /Users/e/work/sg/t4/spec/spec_helper.rb:15:in `require'
from /Users/e/work/sg/t4/spec/spec_helper.rb:15:in `block in <top (required)>'
from /Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/spork-0.9.0.rc9/lib/spork.rb:24:in `prefork'
from /Users/e/work/sg/t4/spec/spec_helper.rb:7:in `<top (required)>'
from /Users/e/work/sg/t4/spec/models/repository_spec.rb:1:in `require'
from /Users/e/work/sg/t4/spec/models/repository_spec.rb:1:in `<top (required)>'
from /Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:459:in `load'
from /Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:459:in `block in load_spec_files'
from /Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:459:in `map'
from /Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:459:in `load_spec_files'
from /Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rspec-core-2.7.1/lib/rspec/core/command_line.rb:18:in `run'
from /Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rspec-core-2.7.1/lib/rspec/core/runner.rb:80:in `run_in_process'
from /Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rspec-core-2.7.1/lib/rspec/core/runner.rb:69:in `run'
from /Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rspec-core-2.7.1/lib/rspec/core/runner.rb:10:in `block in autorun'
rake aborted!
ruby /Users/e/.rvm/rubies/ruby-1.9.2-p290/bin/ruby -S rspec -fs --color ./spec/models/repository_spec.rb failed
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rspec-core-2.7.1/lib/rspec/core/rake_task.rb:149:in `block (2 levels) in initialize'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:60:in `verbose'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rspec-core-2.7.1/lib/rspec/core/rake_task.rb:139:in `block in initialize'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/Users/e/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/Users/e/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/padrino-core-0.10.5/lib/padrino-core/cli/rake.rb:14:in `init'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/padrino-core-0.10.5/lib/padrino-core/cli/base.rb:57:in `rake'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/thor-0.14.6/lib/thor.rb:263:in `dispatch'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/padrino-core-0.10.5/bin/padrino:9:in `<top (required)>'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/bin/padrino:19:in `load'
/Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/bin/padrino:19:in `<main>'
Tasks: TOP => spec => spec:models
± |t4 ✗| → gem list
*** LOCAL GEMS ***
activemodel (3.1.3, 3.1.0)
activerecord (3.1.3, 3.1.0)
activesupport (3.1.3, 3.1.0)
addressable (2.2.6)
arel (2.2.1)
bcrypt-ruby (3.0.1, 3.0.0)
bson (1.5.1, 1.3.1)
bson_ext (1.5.1, 1.3.1)
builder (3.0.0)
bundler (1.0.21 ruby)
capybara (1.1.2, 1.1.1)
childprocess (0.2.3, 0.2.2)
chunky_png (1.2.5, 1.2.1)
compass (0.11.5)
cucumber (1.1.3, 1.0.3)
database_cleaner (0.7.0)
diff-lcs (1.1.3)
em-websocket (0.3.5)
eventmachine (0.12.10)
factory_girl (2.3.2)
faraday (0.7.5, 0.7.4)
ffi (1.0.11, 1.0.9)
fssm (0.2.7)
gherkin (2.6.9, 2.6.8, 2.4.18)
grit (2.4.1)
growl_notify (0.0.3)
guard (0.8.8, 0.7.0)
guard-compass (0.0.6)
guard-cucumber (0.7.4)
guard-livereload (0.3.1)
guard-spork (0.3.2)
haml (3.1.4, 3.1.3)
hashie (1.2.0)
http_router (0.10.2)
i18n (0.6.0)
json (1.6.3, 1.6.2, 1.5.4)
json_pure (1.6.3, 1.5.4)
mail (2.3.0)
metaclass (0.0.1)
mime-types (1.17.2, 1.16)
mocha (0.10.0)
mongo (1.5.1, 1.3.1)
mongo_mapper (0.10.1, 0.9.2)
multi_json (1.0.4, 1.0.3)
multi_xml (0.4.1)
multipart-post (1.1.4, 1.1.3)
nokogiri (1.5.0)
oa-core (0.3.2, 0.0.5)
oa-oauth (0.3.2, 0.0.1)
oa-openid (0.3.2, 0.0.5)
oauth (0.4.5)
oauth2 (0.5.1, 0.5.0)
omniauth (1.0.1, 0.0.1)
padrino (0.10.5, 0.10.2)
padrino-admin (0.10.5, 0.10.2)
padrino-cache (0.10.5, 0.10.2)
padrino-core (0.10.5, 0.10.2)
padrino-gen (0.10.5, 0.10.2)
padrino-helpers (0.10.5, 0.10.2)
padrino-mailer (0.10.5, 0.10.2)
plucky (0.4.3, 0.3.8)
polyglot (0.3.3, 0.3.2)
rack (1.3.5, 1.3.2)
rack-flash (0.1.2)
rack-openid (1.3.1, 1.1.2)
rack-protection (1.1.4)
rack-test (0.6.1)
rake (0.9.2.2, 0.9.2)
rb-appscript (0.6.1)
rb-fchange (0.0.5)
rb-fsevent (0.4.3.1)
rb-inotify (0.8.8)
rspec (2.7.0, 2.6.0)
rspec-core (2.7.1, 2.6.4)
rspec-expectations (2.7.0, 2.6.0)
rspec-mocks (2.7.0, 2.6.0)
ruby-openid (2.1.8)
ruby-openid-apps-discovery (1.2.0)
ruby_gntp (0.3.4)
rubygems-update (1.8.12, 1.8.11)
rubyzip (0.9.5, 0.9.4)
sass (3.1.11, 3.1.7)
selenium-webdriver (2.14.0, 2.5.0)
sinatra (1.3.1, 1.2.6)
sinatra-flash (0.3.0)
spork (0.9.0.rc9, 0.8.5)
spruz (0.2.13)
sqlite3 (1.3.5, 1.3.4)
sqlite3-ruby (1.3.3)
state_machine (1.1.0)
term-ansicolor (1.0.7, 1.0.6)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.31)
url_mount (0.2.1)
xpath (0.1.4)
|ruby-1.9.2-p290@tyrone| ock in ~/w/sg/t4
± |t4 ✗| → irb
no such file to load -- wirble
ruby-1.9.2-p290 :001 > require 'rubygems'
=> false
ruby-1.9.2-p290 :002 > require 'cucumber'
=> true
ruby-1.9.2-p290 :003 > Cucumber.World
NoMethodError: undefined method `World' for Cucumber:Module
from (irb):3
from /Users/e/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `<main>'
ruby-1.9.2-p290 :004 > require 'capybara'
=> true
ruby-1.9.2-p290 :005 > require 'capybara/cucumber'
NoMethodError: undefined method `World' for main:Object
from /Users/e/.rvm/gems/ruby-1.9.2-p290@tyrone/gems/capybara-1.1.2/lib/capybara/cucumber.rb:6:in `<top (required)>'
from /Users/e/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from /Users/e/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
from (irb):5
from /Users/e/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment