This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stacktrace: | |
[~/Sites/app] cucumber | |
Using the default profile... | |
undefined method `javascript_driver=' for Capybara:Module (NoMethodError) | |
/Users/pma/Sites/app/features/support/env.rb:10:in `block in <top (required)>' | |
/Users/pma/.rvm/gems/ruby-1.9.2-p290/gems/spork-0.9.0.rc9/lib/spork.rb:24:in `prefork' | |
/Users/pma/Sites/app/features/support/env.rb:4:in `<top (required)>' | |
/Users/pma/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.0.6/lib/cucumber/rb_support/rb_language.rb:143:in `load' | |
/Users/pma/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-1.0.6/lib/cucumber/rb_support/rb_language.rb:143:in `load_code_file' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/Sites/app] cucumber --drb | |
Using the default profile... | |
Disabling profiles... | |
Exception encountered: #<RuntimeError: Application has been already initialized.> | |
backtrace: | |
/Users/pma/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.0/lib/rails/application.rb:91:in `initialize!' | |
/Users/pma/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-rails-1.0.2/lib/cucumber/rails/application.rb:15:in `initialize!' | |
/Users/pma/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.0/lib/rails/railtie/configurable.rb:30:in `method_missing' | |
/Users/pma/Sites/app/config/environment.rb:5:in `<top (required)>' | |
/Users/pma/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:234:in `load' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Load the rails application | |
require File.expand_path('../application', __FILE__) | |
# Initialize the rails application | |
APP::Application.initialize! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org' | |
gem 'rails', '3.1.0' | |
gem 'pg' | |
group :assets do | |
gem 'sass-rails', " ~> 3.1.0" | |
gem 'coffee-rails', "~> 3.1.0" | |
gem 'uglifier' | |
gem 'haml-rails' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'spork' | |
Spork.prefork do | |
ENV["RAILS_ENV"] ||= "test" | |
require 'cucumber/rails' | |
require 'factory_girl' | |
Capybara.default_selector = :css | |
Capybara.javascript_driver = :webkit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[~/Sites/BOSS2] cucumber | |
Using the default profile... | |
no such file to load -- cucumber/rails/action_controller (LoadError) | |
/Users/pma/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require' | |
/Users/pma/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `block in require' | |
/Users/pma/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:225:in `load_dependency' | |
/Users/pma/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.0/lib/active_support/dependencies.rb:240:in `require' | |
/Users/pma/.rvm/gems/ruby-1.9.2-p290/gems/cucumber-rails-1.0.2/lib/cucumber/rails.rb:6:in `<top (required)>' | |
/Users/pma/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `require' | |
/Users/pma/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:59:in `rescue in require' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'spork' | |
ENV["RAILS_ENV"] ||= 'test' | |
Spork.prefork do | |
# Loading more in this block will cause your tests to run faster. However, | |
# if you change any configuration or code from libraries loaded here, you'll | |
require File.expand_path("../../config/environment", __FILE__) | |
require 'rspec/rails' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'spork' | |
Spork.prefork do | |
ENV["RAILS_ENV"] ||= "test" | |
require File.expand_path(File.dirname(__FILE__) + '/../../config/environment') | |
require 'cucumber/rails' | |
require 'capybara/rspec' | |
require 'capybara/rails' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ruby-1.9.2-p290 :027 > Factory.build(:payment_object, company: Company.first, applicant: Company.first.employees.first).valid? | |
Company Load (0.4ms) SELECT "companies".* FROM "companies" ORDER BY name ASC LIMIT 1 | |
Company Load (0.3ms) SELECT "companies".* FROM "companies" ORDER BY name ASC LIMIT 1 | |
User Load (0.7ms) SELECT "users".* FROM "users" INNER JOIN "employment_data" ON "users"."id" = "employment_data"."user_id" WHERE "employment_data"."company_id" = 1 ORDER BY name ASC LIMIT 1 | |
=> true | |
ruby-1.9.2-p290 :028 > Factory.build(:payment_object, company: Company.first, applicant: Company.first.employees.first).save! | |
Company Load (0.5ms) SELECT "companies".* FROM "companies" ORDER BY name ASC LIMIT 1 | |
Company Load (0.3ms) SELECT "companies".* FROM "companies" ORDER BY name ASC LIMIT 1 | |
User Load (0.7ms) SELECT "users".* FROM "users" INNER JOIN "employment_data" ON "users"."id" = "employment_data"."user_id" WHERE "employment_data"."company_id" = 1 ORDER BY name ASC LIMIT 1 | |
(0.1ms) BEGIN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[rails-3.1][~/Sites/boss] rvm info | |
ruby-1.9.2-p290: | |
system: | |
uname: "Darwin main.uel 11.1.0 Darwin Kernel Version 11.1.0: Tue Jul 26 16:07:11 PDT 2011; root:xnu-1699.22.81~1/RELEASE_X86_64 x86_64" | |
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)" | |
zsh: "/bin/zsh => zsh 4.3.11 (i386-apple-darwin11.0)" | |
rvm: |