trailblazer / rspec-cells

Spec your Cells.
http://cells.rubyforge.org
MIT License
62 stars 48 forks source link

If you use rspec & rspec-rails > 3.3.0 Fixture Error #71

Closed nacengineer closed 9 years ago

nacengineer commented 9 years ago

There is an error with rspec-cells and rspec 3.3.0. I would bet it has something to do with the fixture support added in 3.3.0. Commit #1372

The problem resolves on rollback to rspec/rspec-rails 3.2 branch

/Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/rspec-rails-3.3.0/lib/rspec/rails/example/rails_example_group.rb:14:in `<module:RailsExampleGro
up>': uninitialized constant RSpec::Rails::FixtureSupport (NameError)
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/rspec-rails-3.3.0/lib/rspec/rails/example/rails_example_group.rb:8:in `<module:Rai
ls>'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/rspec-rails-3.3.0/lib/rspec/rails/example/rails_example_group.rb:6:in `<module:RSp
ec>'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/rspec-rails-3.3.0/lib/rspec/rails/example/rails_example_group.rb:5:in `<top (requi
red)>'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/rspec-cells-0.3.2/lib/rspec/cells.rb:5:in `<top (required)>'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/rspec-cells-0.3.2/lib/rspec-cells.rb:11:in `block in <class:Railtie>'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `instance_exec'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `run'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/railties-4.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
        from /Users/dsouthard/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
        from /Users/dsouthard/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
        from /Users/dsouthard/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
        from /Users/dsouthard/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
        from /Users/dsouthard/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:345:in `each'
        from /Users/dsouthard/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:345:in `call'
        from /Users/dsouthard/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
        from /Users/dsouthard/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
        from /Users/dsouthard/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/railties-4.2.1/lib/rails/initializable.rb:54:in `run_initializers'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/railties-4.2.1/lib/rails/application.rb:352:in `initialize!'
        from /Users/dsouthard/Documents/rails/directory/config/environment.rb:5:in `<top (required)>'
        from /Users/dsouthard/Documents/rails/directory/spec/spec_helper.rb:13:in `require'
        from /Users/dsouthard/Documents/rails/directory/spec/spec_helper.rb:13:in `<top (required)>'
        from /Users/dsouthard/Documents/rails/directory/spec/cells/api_cell_spec.rb:1:in `require'
        from /Users/dsouthard/Documents/rails/directory/spec/cells/api_cell_spec.rb:1:in `<top (required)>'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/rspec-core-3.3.0/lib/rspec/core/configuration.rb:1327:in `load'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/rspec-core-3.3.0/lib/rspec/core/configuration.rb:1327:in `block in load_spec_files
'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/rspec-core-3.3.0/lib/rspec/core/configuration.rb:1325:in `each'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/rspec-core-3.3.0/lib/rspec/core/configuration.rb:1325:in `load_spec_files'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/rspec-core-3.3.0/lib/rspec/core/runner.rb:102:in `setup'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/rspec-core-3.3.0/lib/rspec/core/runner.rb:88:in `run'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/rspec-core-3.3.0/lib/rspec/core/runner.rb:73:in `run'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/rspec-core-3.3.0/lib/rspec/core/runner.rb:41:in `invoke'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/gems/rspec-core-3.3.0/exe/rspec:4:in `<top (required)>'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/bin/rspec:23:in `load'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/bin/rspec:23:in `<main>'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/bin/ruby_executable_hooks:15:in `eval'
        from /Users/dsouthard/.rvm/gems/ruby-2.1.5@directory/bin/ruby_executable_hooks:15:in `<main>'
``
apotonick commented 9 years ago

I'd appreciate any help here from you. I don't use Rspec and have no idea what rspec-rails added.

nacengineer commented 9 years ago

Ok I'll take a look at it Monday when I'm back at my machine. I have a feeling its just an assumption that ActiveRecord is present vs ActiveModel

nacengineer commented 9 years ago

yeah that (rspec/rspec-rails#1028 ) sounds like its the issue. gotta love that they punted on what should have been, and is marked at one point in that thread, as a blocking bug.