Created
September 28, 2011 02:39
-
-
Save chaffeqa/1246852 to your computer and use it in GitHub Desktop.
Bundler Issue - commands
This file contains hidden or 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 File.expand_path('../boot', __FILE__) | |
require 'rails/all' | |
if defined?(Bundler) | |
# If you precompile assets before deploying to production, use this line | |
Bundler.require *Rails.groups(:assets => %w(development test)) | |
# If you want your assets lazily compiled in production, use this line | |
# Bundler.require(:default, :assets, Rails.env) | |
end | |
module TestBundler | |
class Application < Rails::Application | |
# Settings in config/environments/* take precedence over those specified here. | |
# Application configuration should go into files in config/initializers | |
# -- all .rb files in that directory are automatically loaded. | |
# Custom directories with classes and modules you want to be autoloadable. | |
# config.autoload_paths += %W(#{config.root}/extras) | |
# Only load the plugins named here, in the order given (default is alphabetical). | |
# :all can be used as a placeholder for all plugins not explicitly named. | |
# config.plugins = [ :exception_notification, :ssl_requirement, :all ] | |
# Activate observers that should always be running. | |
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer | |
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. | |
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. | |
# config.time_zone = 'Central Time (US & Canada)' | |
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. | |
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] | |
# config.i18n.default_locale = :de | |
# Configure the default encoding used in templates for Ruby 1.9. | |
config.encoding = "utf-8" | |
# Configure sensitive parameters which will be filtered from the log file. | |
config.filter_parameters += [:password] | |
# Enable the asset pipeline | |
config.assets.enabled = true | |
# Version of your assets, change this if you want to expire all your assets | |
config.assets.version = '1.0' | |
end | |
end |
This file contains hidden or 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
~/Projects/test-bundler% bundle -v | |
Bundler version 1.0.18 | |
~/Projects/test-bundler% bundle exec rails console | |
Loading development environment (Rails 3.1.0) | |
>> |
This file contains hidden or 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
~/Projects/test-bundler% bundle -v | |
Bundler version 1.1.pre.10 | |
~/Projects/test-bundler% bundle exec rails console | |
******************** | |
Cucumber-rails required by: | |
******************** | |
/Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/bundler-1.1.pre.10/lib/bundler/runtime.rb:76:in `require' | |
/Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/bundler-1.1.pre.10/lib/bundler/runtime.rb:76:in `rescue in block in require' | |
/Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/bundler-1.1.pre.10/lib/bundler/runtime.rb:62:in `block in require' | |
/Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/bundler-1.1.pre.10/lib/bundler/runtime.rb:55:in `each' | |
/Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/bundler-1.1.pre.10/lib/bundler/runtime.rb:55:in `require' | |
/Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/bundler-1.1.pre.10/lib/bundler.rb:126:in `require' | |
/Users/chaffeqa/Projects/test-bundler/config/application.rb:7:in `<top (required)>' | |
/Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/railties-3.1.0/lib/rails/commands.rb:38:in `require' | |
/Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/railties-3.1.0/lib/rails/commands.rb:38:in `<top (required)>' | |
script/rails:6:in `require' | |
script/rails:6:in `<main>' | |
******************** | |
/Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/cucumber-rails-1.0.5/lib/cucumber/rails.rb:9:in `dirname': can't convert nil into String (TypeError) | |
from /Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/cucumber-rails-1.0.5/lib/cucumber/rails.rb:9:in `<top (required)>' | |
from /Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/bundler-1.1.pre.10/lib/bundler/runtime.rb:76:in `require' | |
from /Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/bundler-1.1.pre.10/lib/bundler/runtime.rb:76:in `rescue in block in require' | |
from /Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/bundler-1.1.pre.10/lib/bundler/runtime.rb:62:in `block in require' | |
from /Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/bundler-1.1.pre.10/lib/bundler/runtime.rb:55:in `each' | |
from /Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/bundler-1.1.pre.10/lib/bundler/runtime.rb:55:in `require' | |
from /Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/bundler-1.1.pre.10/lib/bundler.rb:126:in `require' | |
from /Users/chaffeqa/Projects/test-bundler/config/application.rb:7:in `<top (required)>' | |
from /Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/railties-3.1.0/lib/rails/commands.rb:38:in `require' | |
from /Users/chaffeqa/.rvm/gems/ruby-1.9.3-preview1@test-bundler-pre/gems/railties-3.1.0/lib/rails/commands.rb:38:in `<top (required)>' | |
from script/rails:6:in `require' | |
from script/rails:6:in `<main>' | |
~/Projects/test-bundler% |
This file contains hidden or 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
# Prints out a stack trace of the caller... | |
puts "\n\n********************\n Cucumber-rails required by:\n********************\n#{caller.join("\n")}\n********************\n\n" | |
require 'rails' | |
require 'cucumber/rails/application' | |
ENV["RAILS_ENV"] ||= "test" | |
#puts "\n**********************\nCucumber-rails Caller Stack:" | |
#puts caller.join("\n") | |
#puts "**********************\n" | |
ENV["RAILS_ROOT"] ||= File.expand_path(File.dirname(caller.detect{|f| f =~ /\/env\.rb:/}) + '/../..') | |
require File.expand_path(ENV["RAILS_ROOT"] + '/config/environment') | |
require 'cucumber/rails/action_controller' | |
if defined?(ActiveRecord::Base) | |
require 'rails/test_help' | |
else | |
require 'action_dispatch/testing/test_process' | |
require 'action_dispatch/testing/integration' | |
end | |
if !Rails.application.config.cache_classes | |
warn "WARNING: You have set Rails' config.cache_classes to false (most likely in config/environments/cucumber.rb). This setting is known to cause problems with database transactions. Set config.cache_classes to true if you want to use transactions. For more information see https://rspec.lighthouseapp.com/projects/16211/tickets/165." | |
end | |
require 'cucumber/rails/world' | |
require 'cucumber/rails/hooks' | |
require 'cucumber/rails/capybara' | |
require 'cucumber/web/tableish' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment