Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for rails 4 #64

Closed
wants to merge 1 commit into from
Closed

Add support for rails 4 #64

wants to merge 1 commit into from

Conversation

sergiopatricio
Copy link

When running specs on rails 4 I have the error below.
This change fixes the problem, I'm just not sure if it is the correct fix. At work I have a rails 4 project running specjour (specs and fixtures) with this fix and is working well.

Loading RSpec environment... completed in 16.598046s
Resetting database 1
NoMethodError undefined method `[]' for nil:NilClass
(...)/gems/2.1.0/gems/activerecord-4.0.13/lib/active_record/tasks/database_tasks.rb:137:in `purge'
(...)/gems/2.1.0/gems/activerecord-4.0.13/lib/active_record/railties/databases.rake:366:in `block (3 levels) in <top (required)>'
(...)/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `call'
(...)/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:240:in `block in execute'
(...)/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `each'
(...)/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:235:in `execute'
(...)/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
(...)/2.1.0/monitor.rb:211:in `mon_synchronize'
(...)/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
(...)/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:201:in `block in invoke_prerequisites'
(...)/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `each'
(...)/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:199:in `invoke_prerequisites'
(...)/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
(...)/2.1.0/monitor.rb:211:in `mon_synchronize'
(...)/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:172:in `invoke_with_call_chain'
(...)/gems/2.1.0/gems/rake-10.4.2/lib/rake/task.rb:165:in `invoke'
(...)/gems/2.1.0/bundler/gems/specjour-9bce2d505c9f/lib/specjour/db_scrub.rb:26:in `scrub'
(...)/gems/2.1.0/bundler/gems/specjour-9bce2d505c9f/lib/specjour/configuration.rb:66:in `block in default_after_fork'
(...)/gems/2.1.0/bundler/gems/specjour-9bce2d505c9f/lib/specjour/worker.rb:27:in `call'
(...)/gems/2.1.0/bundler/gems/specjour-9bce2d505c9f/lib/specjour/worker.rb:27:in `run_tests'
(...)/gems/2.1.0/bundler/gems/specjour-9bce2d505c9f/lib/specjour/loader.rb:30:in `block (2 levels) in start'
(...)/gems/2.1.0/bundler/gems/specjour-9bce2d505c9f/lib/specjour/fork.rb:12:in `block in fork'
(...)/gems/2.1.0/bundler/gems/specjour-9bce2d505c9f/lib/specjour/fork.rb:9:in `fork'
(...)/gems/2.1.0/bundler/gems/specjour-9bce2d505c9f/lib/specjour/fork.rb:9:in `fork'
(...)/gems/2.1.0/bundler/gems/specjour-9bce2d505c9f/lib/specjour/loader.rb:25:in `block in start'
(...)/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/core_ext/range/each.rb:7:in `each'
(...)/gems/2.1.0/gems/activesupport-4.0.13/lib/active_support/core_ext/range/each.rb:7:in `each_with_time_with_zone'
(...)/gems/2.1.0/bundler/gems/specjour-9bce2d505c9f/lib/specjour/loader.rb:24:in `start'
(...)/gems/2.1.0/bundler/gems/specjour-9bce2d505c9f/lib/specjour/cli.rb:57:in `load'
(...)/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
(...)/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
(...)/gems/2.1.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
(...)/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
(...)/gems/2.1.0/bundler/gems/specjour-9bce2d505c9f/lib/specjour/cli.rb:24:in `start'
(...)/gems/2.1.0/bundler/gems/specjour-9bce2d505c9f/bin/specjour:5:in `<main>'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant