Comments (6)
Hanami.app it works too
from rspec-hanami.
Hello, thanks for reporting 👍
Could you provide more information about this problem?
from rspec-hanami.
Failed here basically
config.include RSpec::FeatureExampleGroup
Log
/Users/onemanstartup/Code/Experiment/oneman/spec/support/capybara.rb:5:in `included': uninitialized constant RSpec::Hanami::Container (NameError)
from /Users/onemanstartup/Code/Experiment/oneman/.gem/ruby/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1312:in `include'
from /Users/onemanstartup/Code/Experiment/oneman/.gem/ruby/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1312:in `safe_include'
from /Users/onemanstartup/Code/Experiment/oneman/.gem/ruby/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1261:in `block in configure_existing_groups'
from /Users/onemanstartup/Code/Experiment/oneman/.gem/ruby/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1259:in `each'
from /Users/onemanstartup/Code/Experiment/oneman/.gem/ruby/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1259:in `configure_existing_groups'
from /Users/onemanstartup/Code/Experiment/oneman/.gem/ruby/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1161:in `include'
from /Users/onemanstartup/Code/Experiment/oneman/spec/features_helper.rb:8:in `block in <top (required)>'
from /Users/onemanstartup/Code/Experiment/oneman/.gem/ruby/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core.rb:97:in `configure'
from /Users/onemanstartup/Code/Experiment/oneman/spec/features_helper.rb:7:in `<top (required)>'
from /Users/onemanstartup/Code/Experiment/oneman/spec/web/features/visit_home_spec.rb:1:in `require'
from /Users/onemanstartup/Code/Experiment/oneman/spec/web/features/visit_home_spec.rb:1:in `<top (required)>'
from /Users/onemanstartup/Code/Experiment/oneman/.gem/ruby/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1361:in `load'
from /Users/onemanstartup/Code/Experiment/oneman/.gem/ruby/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1361:in `block in load_spec_files'
from /Users/onemanstartup/Code/Experiment/oneman/.gem/ruby/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1359:in `each'
from /Users/onemanstartup/Code/Experiment/oneman/.gem/ruby/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/configuration.rb:1359:in `load_spec_files'
from /Users/onemanstartup/Code/Experiment/oneman/.gem/ruby/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:106:in `setup'
from /Users/onemanstartup/Code/Experiment/oneman/.gem/ruby/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:92:in `run'
from /Users/onemanstartup/Code/Experiment/oneman/.gem/ruby/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:78:in `run'
from /Users/onemanstartup/Code/Experiment/oneman/.gem/ruby/2.3.0/gems/rspec-core-3.4.4/lib/rspec/core/runner.rb:45:in `invoke'
from /Users/onemanstartup/Code/Experiment/oneman/.gem/ruby/2.3.0/gems/rspec-core-3.4.4/exe/rspec:4:in `<main>'
from rspec-hanami.
I also ran into this problem. Had to change
Capybara.app = Hanami::Container.new
to
Capybara.app = ::Hanami::Container.new
in spec/support/capybara.rb, so it worked.
from rspec-hanami.
lightalloy's fix also works for the ::hanami::App.new case
.
from rspec-hanami.
I updated installation information for this case. Thanks everyone 🎉
from rspec-hanami.
Related Issues (8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rspec-hanami.