Coder Social home page Coder Social logo

Comments (5)

davydovanton avatar davydovanton commented on May 27, 2024

Hey, thanks for the report 👍

Could you create empty hanami app and try to reproduce this error? Thanks!

from rspec-hanami.

vladiim avatar vladiim commented on May 27, 2024

Yes - I get the same error in a new Hanami app instance.

$ hanami new foo --test=rspec
$ cd foo
$ echo "gem 'rspec-hanami', group: :test" >> Gemfile
$ bundle
# spec/spec_helper.rb
require 'rspec/hanami'

RSpec.configure do |config|
  config.include RSpec::Hanami::Matchers
  config.include RSpec::Hanami::RequestHelpers
end
$ rspec

Output:

NameError: uninitialized constant RSpec::Hanami::RequestHelpers
  /Users/vlad/code/test/spec/spec_helper.rb:106:in `block in <top (required)>'
  /Users/vlad/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rspec-core-3.6.0/lib/rspec/core.rb:98:in `configure'
  /Users/vlad/code/test/spec/spec_helper.rb:28:in `<top (required)>'
  /Users/vlad/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rspec-core-3.6.0/lib/rspec/core/configuration.rb:1453:in `require'
  /Users/vlad/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rspec-core-3.6.0/lib/rspec/core/configuration.rb:1453:in `block in requires='
  /Users/vlad/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rspec-core-3.6.0/lib/rspec/core/configuration.rb:1453:in `each'
  /Users/vlad/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rspec-core-3.6.0/lib/rspec/core/configuration.rb:1453:in `requires='
  /Users/vlad/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rspec-core-3.6.0/lib/rspec/core/configuration_options.rb:112:in `block in process_options_into'
  /Users/vlad/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rspec-core-3.6.0/lib/rspec/core/configuration_options.rb:111:in `each'
  /Users/vlad/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rspec-core-3.6.0/lib/rspec/core/configuration_options.rb:111:in `process_options_into'
  /Users/vlad/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rspec-core-3.6.0/lib/rspec/core/configuration_options.rb:21:in `configure'
  /Users/vlad/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rspec-core-3.6.0/lib/rspec/core/runner.rb:99:in `setup'
  /Users/vlad/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rspec-core-3.6.0/lib/rspec/core/runner.rb:86:in `run'
  /Users/vlad/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rspec-core-3.6.0/lib/rspec/core/runner.rb:71:in `run'
  /Users/vlad/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rspec-core-3.6.0/lib/rspec/core/runner.rb:45:in `invoke'
  /Users/vlad/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/rspec-core-3.6.0/exe/rspec:4:in `<top (required)>'
  /Users/vlad/.rbenv/versions/2.3.3/bin/rspec:22:in `load'
  /Users/vlad/.rbenv/versions/2.3.3/bin/rspec:22:in `<top (required)>'

from rspec-hanami.

vladiim avatar vladiim commented on May 27, 2024

bundle open 'rspec-hanami reveals that rspec-hanami/lib/rspec/hanami/request_helpers.rb is missing.

The rspec-hanami version is 0.2.0 and ruby --version is 2.3.3p222.

Hope that helps?

from rspec-hanami.

artofhuman avatar artofhuman commented on May 27, 2024

@vladiim It because RequestHelpers do not release yet.
I try to reproduce this bug and it reproduced in 0.2.0, but not in head gem 'rspec-hanami', group: :test, github: 'davydovanton/rspec-hanami'

@davydovanton mb this feature should be released in 0.3.0 ?

from rspec-hanami.

davydovanton avatar davydovanton commented on May 27, 2024

@artofhuman I think yes, 0.3.0 good place for this feature 👍

from rspec-hanami.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.