Skip to content

v0.0.5 configure for jsonapi_indifferent_hash breaking rake spec #20

Closed
@sa73917

Description

@sa73917

Expected Behavior

jsonapi-rspec gem should load within rake without issues

Actual Behavior

rake aborted!
NoMethodError: undefined method `configure' for RSpec:Module
.../config/application.rb:20:in `<top (required)>'
.../Rakefile:4:in `require_relative'
.../Rakefile:4:in `<top (required)>'

Caused by:
LoadError: cannot load such file -- jsonapi-rspec
.../config/application.rb:20:in `<top (required)>'
.../Rakefile:4:in `require_relative'
.../Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

Steps to Reproduce the Problem

  1. include v0.0.5 in project Gemfile
  2. run rake spec

Specifications

  • Version: v0.0.5
  • Ruby version: 2.7.1
  • Rake version: 13.0.1

Possible solution

requiring rspec/core in rspec.rb resolves the issue. Not sure if this is the best solution but certainly a simple fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions