{"action":"created","issue":{"url":"https://api.github.com/repos/pat/combustion/issues/70","labels_url":"https://api.github.com/repos/pat/combustion/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/pat/combustion/issues/70/comments","events_url":"https://api.github.com/repos/pat/combustion/issues/70/events","html_url":"https://github.com/pat/combustion/issues/70","id":127908932,"number":70,"title":"uninitialized constant Rails (NameError)","user":{"login":"bobf","id":18470,"avatar_url":"https://avatars.githubusercontent.com/u/18470?v=3","gravatar_id":"","url":"https://api.github.com/users/bobf","html_url":"https://github.com/bobf","followers_url":"https://api.github.com/users/bobf/followers","following_url":"https://api.github.com/users/bobf/following{/other_user}","gists_url":"https://api.github.com/users/bobf/gists{/gist_id}","starred_url":"https://api.github.com/users/bobf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobf/subscriptions","organizations_url":"https://api.github.com/users/bobf/orgs","repos_url":"https://api.github.com/users/bobf/repos","events_url":"https://api.github.com/users/bobf/events{/privacy}","received_events_url":"https://api.github.com/users/bobf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-21T11:59:06Z","updated_at":"2016-01-21T12:27:14Z","closed_at":null,"body":"I really hope this isn't a duplicate of #27 - apologies if so !\r\n\r\n```\r\n $ ruby --version\r\nruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-darwin13.0]\r\n $ rails --version\r\nRails 4.2.5\r\n $ rails plugin new combustable -T --mountable\r\n      create\r\n      create  README.rdoc\r\n      create  Rakefile\r\n      create  combustable.gemspec\r\n      create  MIT-LICENSE\r\n      create  .gitignore\r\n      create  Gemfile\r\n      create  app\r\n      create  app/controllers/combustable/application_controller.rb\r\n      create  app/helpers/combustable/application_helper.rb\r\n      create  app/mailers\r\n      create  app/models\r\n      create  app/views/layouts/combustable/application.html.erb\r\n      create  app/assets/images/combustable\r\n      create  app/assets/images/combustable/.keep\r\n      create  config/routes.rb\r\n      create  lib/combustable.rb\r\n      create  lib/tasks/combustable_tasks.rake\r\n      create  lib/combustable/version.rb\r\n      create  lib/combustable/engine.rb\r\n      create  app/assets/stylesheets/combustable/application.css\r\n      create  app/assets/javascripts/combustable/application.js\r\n      create  bin\r\n      create  bin/rails\r\n         run  bundle install\r\n $ cd combustable\r\n# [ edit Gemfile ]\r\n $ bundle install\r\nResolving dependencies...\r\nUsing rake 10.5.0\r\nUsing i18n 0.7.0\r\nUsing json 1.8.3\r\nUsing minitest 5.8.3\r\nUsing thread_safe 0.3.5\r\nUsing tzinfo 1.2.2\r\nUsing activesupport 4.2.5\r\nUsing builder 3.2.2\r\nUsing erubis 2.7.0\r\nUsing mini_portile2 2.0.0\r\nUsing nokogiri 1.6.7.2\r\nUsing rails-deprecated_sanitizer 1.0.3\r\nUsing rails-dom-testing 1.0.7\r\nUsing loofah 2.0.3\r\nUsing rails-html-sanitizer 1.0.2\r\nUsing actionview 4.2.5\r\nUsing rack 1.6.4\r\nUsing rack-test 0.6.3\r\nUsing actionpack 4.2.5\r\nUsing globalid 0.3.6\r\nUsing activejob 4.2.5\r\nUsing mime-types 2.99\r\nUsing mail 2.6.3\r\nUsing actionmailer 4.2.5\r\nUsing activemodel 4.2.5\r\nUsing arel 6.0.3\r\nUsing activerecord 4.2.5\r\nUsing bundler 1.10.0.rc\r\nUsing xpath 2.0.0\r\nUsing capybara 2.5.0\r\nUsing thor 0.19.1\r\nUsing railties 4.2.5\r\nUsing concurrent-ruby 1.0.0\r\nUsing sprockets 3.5.2\r\nUsing sprockets-rails 3.0.0\r\nUsing rails 4.2.5\r\nUsing combustable 0.0.1 from source at .\r\nUsing combustion 0.5.4\r\nUsing diff-lcs 1.2.5\r\nUsing rspec-support 3.3.0\r\nUsing rspec-core 3.3.2\r\nUsing rspec-expectations 3.3.1\r\nUsing rspec-mocks 3.3.2\r\nUsing rspec-rails 3.3.3\r\nUsing sqlite3 1.3.11\r\n $ bin/rails g rspec:install\r\n      create  .rspec\r\n      create  spec\r\n      create  spec/spec_helper.rb\r\n      create  spec/rails_helper.rb\r\n# [ edit spec/spec_helper.rb - see below ]\r\n\r\n $ combust\r\n      create  spec/internal\r\n      create  spec/internal/config\r\n      create  spec/internal/db\r\n      create  spec/internal/log\r\n      create  spec/internal/public\r\n      create  spec/internal/config/routes.rb\r\n      create  spec/internal/config/database.yml\r\n      create  spec/internal/db/schema.rb\r\n      create  config.ru\r\n      create  spec/internal/public/favicon.ico\r\n      create  spec/internal/log/.gitignore\r\n $ rackup\r\n/Users/bobfarrell/dev/combustable/lib/combustable/engine.rb:2:in `<module:Combustable>': uninitialized constant Rails (NameError)\r\n\tfrom /Users/bobfarrell/dev/combustable/lib/combustable/engine.rb:1:in `<top (required)>'\r\n\tfrom /Users/bobfarrell/dev/combustable/lib/combustable.rb:1:in `require'\r\n\tfrom /Users/bobfarrell/dev/combustable/lib/combustable.rb:1:in `<top (required)>'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/bundler-1.10.0.rc/lib/bundler/runtime.rb:76:in `require'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/bundler-1.10.0.rc/lib/bundler/runtime.rb:76:in `block (2 levels) in require'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/bundler-1.10.0.rc/lib/bundler/runtime.rb:72:in `each'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/bundler-1.10.0.rc/lib/bundler/runtime.rb:72:in `block in require'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/bundler-1.10.0.rc/lib/bundler/runtime.rb:61:in `each'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/bundler-1.10.0.rc/lib/bundler/runtime.rb:61:in `require'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/bundler-1.10.0.rc/lib/bundler.rb:133:in `require'\r\n\tfrom /Users/bobfarrell/dev/combustable/config.ru:4:in `block in <main>'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'\r\n\tfrom /Users/bobfarrell/dev/combustable/config.ru:in `new'\r\n\tfrom /Users/bobfarrell/dev/combustable/config.ru:in `<main>'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/server.rb:299:in `build_app_and_options_from_config'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/server.rb:208:in `app'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/server.rb:336:in `wrapped_app'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/server.rb:272:in `start'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/rack-1.6.4/lib/rack/server.rb:147:in `start'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/lib/ruby/gems/2.1.0/gems/rack-1.6.4/bin/rackup:4:in `<top (required)>'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/bin/rackup:23:in `load'\r\n\tfrom /Users/bobfarrell/.rbenv/versions/2.1.6/bin/rackup:23:in `<main>'\r\n```\r\n\r\nGemfile:\r\n\r\n``` ruby\r\nsource 'https://rubygems.org'\r\n\r\n# Declare your gem's dependencies in combustable.gemspec.\r\n# Bundler will treat runtime dependencies like base dependencies, and\r\n# development dependencies will be added by default to the :development group.\r\ngemspec\r\n\r\n# Declare any dependencies that are still in development here instead of in\r\n# your gemspec. These might include edge Rails or gems from your path or\r\n# Git. Remember to move these dependencies to your gemspec before releasing\r\n# your gem to rubygems.org.\r\n\r\n# To use a debugger\r\n# gem 'byebug', group: [:development, :test]\r\n\r\ngroup :test do\r\n  gem 'combustion', '~> 0.5.4'\r\n  gem 'rspec-rails'\r\n  gem 'capybara'\r\nend\r\n```\r\n\r\n`spec/spec_helper.rb` (I guess this isn't relevant ?)\r\n\r\n``` ruby\r\nrequire 'rubygems'\r\nrequire 'bundler/setup'\r\n\r\nrequire 'combustion'\r\nrequire 'capybara/rspec'\r\n\r\nCombustion.initialize! :all\r\n\r\nrequire 'rspec/rails'\r\nrequire 'capybara/rails'\r\n# This file was generated by the `rails generate rspec:install` command. Conventionally, all\r\n# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.\r\n# The generated `.rspec` file contains `--require spec_helper` which will cause\r\n# this file to always be loaded, without a need to explicitly require it in any\r\n# files.\r\n#\r\n# Given that it is always loaded, you are encouraged to keep this file as\r\n# light-weight as possible. Requiring heavyweight dependencies from this file\r\n# will add to the boot time of your test suite on EVERY test run, even for an\r\n# individual file that may not need all of that loaded. Instead, consider making\r\n# a separate helper file that requires the additional dependencies and performs\r\n# the additional setup, and require it from the spec files that actually need\r\n# it.\r\n#\r\n# The `.rspec` file also contains a few flags that are not defaults but that\r\n# users commonly want.\r\n#\r\n# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration\r\nRSpec.configure do |config|\r\n  # rspec-expectations config goes here. You can use an alternate\r\n  # assertion/expectation library such as wrong or the stdlib/minitest\r\n  # assertions if you prefer.\r\n  config.expect_with :rspec do |expectations|\r\n    # This option will default to `true` in RSpec 4. It makes the `description`\r\n    # and `failure_message` of custom matchers include text for helper methods\r\n    # defined using `chain`, e.g.:\r\n    #     be_bigger_than(2).and_smaller_than(4).description\r\n    #     # => \"be bigger than 2 and smaller than 4\"\r\n    # ...rather than:\r\n    #     # => \"be bigger than 2\"\r\n    expectations.include_chain_clauses_in_custom_matcher_descriptions = true\r\n  end\r\n\r\n  # rspec-mocks config goes here. You can use an alternate test double\r\n  # library (such as bogus or mocha) by changing the `mock_with` option here.\r\n  config.mock_with :rspec do |mocks|\r\n    # Prevents you from mocking or stubbing a method that does not exist on\r\n    # a real object. This is generally recommended, and will default to\r\n    # `true` in RSpec 4.\r\n    mocks.verify_partial_doubles = true\r\n  end\r\n\r\n# The settings below are suggested to provide a good initial experience\r\n# with RSpec, but feel free to customize to your heart's content.\r\n=begin\r\n  # These two settings work together to allow you to limit a spec run\r\n  # to individual examples or groups you care about by tagging them with\r\n  # `:focus` metadata. When nothing is tagged with `:focus`, all examples\r\n  # get run.\r\n  config.filter_run :focus\r\n  config.run_all_when_everything_filtered = true\r\n\r\n  # Allows RSpec to persist some state between runs in order to support\r\n  # the `--only-failures` and `--next-failure` CLI options. We recommend\r\n  # you configure your source control system to ignore this file.\r\n  config.example_status_persistence_file_path = \"spec/examples.txt\"\r\n\r\n  # Limits the available syntax to the non-monkey patched syntax that is\r\n  # recommended. For more details, see:\r\n  #   - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax\r\n  #   - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/\r\n  #   - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching\r\n  config.disable_monkey_patching!\r\n\r\n  # Many RSpec users commonly either run the entire suite or an individual\r\n  # file, and it's useful to allow more verbose output when running an\r\n  # individual spec file.\r\n  if config.files_to_run.one?\r\n    # Use the documentation formatter for detailed output,\r\n    # unless a formatter has already been configured\r\n    # (e.g. via a command-line flag).\r\n    config.default_formatter = 'doc'\r\n  end\r\n\r\n  # Print the 10 slowest examples and example groups at the\r\n  # end of the spec run, to help surface which specs are running\r\n  # particularly slow.\r\n  config.profile_examples = 10\r\n\r\n  # Run specs in random order to surface order dependencies. If you find an\r\n  # order dependency and want to debug it, you can fix the order by providing\r\n  # the seed, which is printed after each run.\r\n  #     --seed 1234\r\n  config.order = :random\r\n\r\n  # Seed global randomization in this process using the `--seed` CLI option.\r\n  # Setting this allows you to use `--seed` to deterministically reproduce\r\n  # test failures related to randomization by passing the same `--seed` value\r\n  # as the one that triggered the failure.\r\n  Kernel.srand config.seed\r\n=end\r\nend\r\n```\r\n\r\nLet me know if you need any more info. Thanks !"},"comment":{"url":"https://api.github.com/repos/pat/combustion/issues/comments/173556435","html_url":"https://github.com/pat/combustion/issues/70#issuecomment-173556435","issue_url":"https://api.github.com/repos/pat/combustion/issues/70","id":173556435,"user":{"login":"pat","id":4183,"avatar_url":"https://avatars.githubusercontent.com/u/4183?v=3","gravatar_id":"","url":"https://api.github.com/users/pat","html_url":"https://github.com/pat","followers_url":"https://api.github.com/users/pat/followers","following_url":"https://api.github.com/users/pat/following{/other_user}","gists_url":"https://api.github.com/users/pat/gists{/gist_id}","starred_url":"https://api.github.com/users/pat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pat/subscriptions","organizations_url":"https://api.github.com/users/pat/orgs","repos_url":"https://api.github.com/users/pat/repos","events_url":"https://api.github.com/users/pat/events{/privacy}","received_events_url":"https://api.github.com/users/pat/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T12:27:14Z","updated_at":"2016-01-21T12:27:14Z","body":"I've not used the rspec-rails generator from within an engine - I'm not sure it was built for that purpose? The `spec_helper.rb` in the README is what I expect should work - if you're able to reproduce your original rack-test error, that'd be super helpful."}}