Daniel Doubrovkine bio photo

Daniel Doubrovkine

aka dB., @awscloud, former CTO @artsy, +@vestris, NYC

Email Twitter LinkedIn Github Strava
Creative Commons License

This one took a while and required extensive help from a rocket scientist. While running RSpec I got this.

  in `should': uninitialized constant RSpec::Expectations::PositiveExpectationHandler (NameError)

The problem was that you need to configure the expectations framework in spec/spec_helper.rb. The expect_with :rspec is the fix.

RSpec.configure do |config|
    config.mock_with :rspec
    config.expect_with :rspec

You can read more about rspec configuration here.