First two unit tests in spec/acceptance/activesupport_instrumentation_spec.rb fail on fresh checkout #367

Closed
chrisbloom7 opened this Issue Apr 30, 2012 · 3 comments

Comments

Projects
None yet
2 participants
@chrisbloom7

After cloning the project to a fresh local directory, I ran bundle exec rspec spec. The first two tests fail:

$ bundle exec rspec spec
FF..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

Failures:

  1) using ActiveSupport::Instrumentation to track factory interaction tracks proper time of creating the record
     Failure/Error: ActiveSupport::Notifications.subscribed(callback, "factory_girl.run_factory") do
     NoMethodError:
       undefined method `subscribed' for ActiveSupport::Notifications:Module
     # ./spec/acceptance/activesupport_instrumentation_spec.rb:21:in `block (2 levels) in <top (required)>'

  2) using ActiveSupport::Instrumentation to track factory interaction builds the correct payload
     Failure/Error: ActiveSupport::Notifications.subscribed(callback, "factory_girl.run_factory") do
     NoMethodError:
       undefined method `subscribed' for ActiveSupport::Notifications:Module
     # ./spec/acceptance/activesupport_instrumentation_spec.rb:39:in `block (2 levels) in <top (required)>'

Finished in 6.88 seconds
512 examples, 2 failures

Failed examples:

rspec ./spec/acceptance/activesupport_instrumentation_spec.rb:18 # using ActiveSupport::Instrumentation to track factory interaction tracks proper time of creating the record
rspec ./spec/acceptance/activesupport_instrumentation_spec.rb:28 # using ActiveSupport::Instrumentation to track factory interaction builds the correct payload
@joshuaclayton

This comment has been minimized.

Show comment Hide comment
@joshuaclayton

joshuaclayton Apr 30, 2012

Owner

Weird - I can reproduce but running bundle exec rake works fine. Ideas?

Owner

joshuaclayton commented Apr 30, 2012

Weird - I can reproduce but running bundle exec rake works fine. Ideas?

@chrisbloom7

This comment has been minimized.

Show comment Hide comment
@chrisbloom7

chrisbloom7 Apr 30, 2012

I noticed that if I ran bundle update then bundle exec rspec spec completed w/o failures. Both activesupport and a couple Rspec gems, including core, were among the gems that installed updated versions. Maybe it was a dependency issue?

I noticed that if I ran bundle update then bundle exec rspec spec completed w/o failures. Both activesupport and a couple Rspec gems, including core, were among the gems that installed updated versions. Maybe it was a dependency issue?

@joshuaclayton

This comment has been minimized.

Show comment Hide comment
@joshuaclayton

joshuaclayton Apr 30, 2012

Owner

Ah, maybe. I'll tweak the dependencies in the Gemspec and see if it helps. Thanks!

Owner

joshuaclayton commented Apr 30, 2012

Ah, maybe. I'll tweak the dependencies in the Gemspec and see if it helps. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment