Skip to content

RSpec not loaded? #21

Description

@bolandrm

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions