Skip to content

uninitialized constant RspecApiDocumentation::Writers::JsonWriter (NameError) #382

Closed
@rlgreen91

Description

@rlgreen91

System info:

  • Ruby 2.5.1
  • Rails 5.2.0
  • Rspec 3.7.0
  • RspecApiDocumentation 5.1.0

I have my specs set up in spec/acceptance, as required. When I run bundle exec rake docs:generate, I get the following error:

/Users/rachel/.rvm/gems/ruby-2.5.1/gems/bootsnap-1.3.0/lib/bootsnap/load_path_cache/core_ext/active_support.rb:53:in `block in load_missing_constant': uninitialized constant RspecApiDocumentation::Writers::JsonWriter (NameError)

My configuration is set up as described in rails_helper.rb. This only occurs with trying to output as JSON - outputting as a different format, like HTML, works fine. I'm guessing it's not resolving the names correctly - it's looking for JsonWriter, not JSONWriter, as listed in the gem.

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