ruby on rails - bundle exec rspec spec/requests/static_pages_spec.rb Error -


Hi all I am working on every heart of the book, like most people got into tease and error in chapter 3. Each time I try type: bundle exec rspec spec / requests / static_pages_spec.rb I found the following error:

  / home / action / rails_projects / sample_app / Config / environment / test rb: 1: in `& lt; Top (required) & gt; ': Undefined method # & lt; Sampl eApp :: application: 0x007fc2f39dcac0 & gt; Configure for; (NoMethodError) /home/action/.gem/ruby/2.0.0/gems/activesupport-4.0.8/lib/active_support/dependencies.rbature29: From '/' required by /home/action/.gem/ruby/2.0. In 'Block Required' from 0 / gems / activesupport-4.0.8 /lib/active_support/dependencies.rblege29:in/ 'HOME / action / .gem / ruby ​​/ 2.0.0 / gems / activesupport-4.0. 8/lib/active_support/dependencies.rbaxy14:in/home/action/.gem/ruby/2.0.0/gems/activesupport-4.0.8/lib/active_support/dependencies.rbature29:in `load_default '/ home / action `Required 'is required from /.gem/ruby/2.0.0/gems/railties-4.0.8/lib/r rail / engine.rb: 591: in the block (2 level) & lt; Class: Engines & gt; '/home/action/.gem/ruby/2.0.0/gems/railties-4.0.8/lib/range/rr.fr/590: `home/action/.gem/ruby/2.0 to `every' . 0 / gemstone / railway -4.0.8 / leeb / rail / engine RB: 590: `Block In & Lt; Class: Engines & gt; '/home/action/.gem/ruby/2.0.0/gems/railties-4.0.8/lib/Rail / initializable.rb From: 30: to `instance_exec' /home/action/.gem/ruby/2.0 . 0 / gemstone / railways -4.0.8 / lit / rail / initial RB: 30: Run 'in'  

Although my initial test.rb file is down I still get the error

  Rails.application.configure Do # settings are specified here in config / application.rb will be preferred over them # The testing environment is used only to run the # test suite of your application. You do not have to work with it otherwise. Remember that # is the "scratch space" for your test database test suite and it has been erased and is rebuilt between test runs. Do not trust the data there! Config.cache_classes = true # Do not be anxious load codes on boots. This avoids loading your entire application # for the purpose of running only one test. If you are using a device that runs #preloadload to run the test, you may have to set it to the right Config.eager_load = false # Fixed asset server for cache-control tests for display Config Config.serve_static_assets = true config.static_cache_control = 'public, max-age = 3600' # Show complete error report and disable caching. Config.consider_all_requests_local = true config.action_controller.perform_caching = false # Exceptions instead of providing exception templates. Config.action_dispatch.show_exceptions = false # Disable security for request security in the testing environment. Config.action_controller.allow_forgery_protection = false # Tell the action mailer not to distribute email in the real world. #: Test delivery method collects emails sent in # ActionMailer :: Base.deliveries array. Config.action_mailer.delivery_method =: Print exclusion notice to exam # stderr. Config.active_support.deprecation =: stderr # Error occurs for unavailable translations # config.action_view.raise_on_missing_translations = true end  

If someone can help, then it would be good!

I get the first line of development.rb production.rb and SampleApp :: application.configure to Test.rb Fix this problem


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

How to access user directory in lazarus? -

java - Gradle dependencies: compile project by relative path -