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

RSpec not loaded? #21

Open
bolandrm opened this issue Jun 3, 2014 · 1 comment
Open

RSpec not loaded? #21

bolandrm opened this issue Jun 3, 2014 · 1 comment

Comments

@bolandrm
Copy link

bolandrm commented Jun 3, 2014

It seems that RSpec is not defined on the initial declaration of the configuration item:

module SimpleBdd
  class StepNotImplemented < StandardError; end

  RSpec.configuration.add_setting(:raise_error_on_missing_step_implementation,
                                  default: false) if defined?(::RSpec)

Which leads to this issue:

  1) Commenting through the activity page commenting on news comment activity
     Failure/Error: When "I add a comment"
     NoMethodError:
       undefined method `raise_error_on_missing_step_implementation?' for #<RSpec::Core::Configuration:0x007f9ed4cfac90>

I'm not sure if this is an issue with my local setup or what. Potentially, RSpec could be required in simple_bdd/rspec

require 'rspec'    # <============
require 'simple_bdd'

RSpec.configure do |config|
  config.include SimpleBdd
end
@robb1e
Copy link
Owner

robb1e commented Sep 6, 2014

Ah yes. We tried to make it wasn't dependent on RSpec, and so it could be used with other tools. However, it looks like some RSpec dependencies have leaked through.

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

No branches or pull requests

2 participants