Upgraded to newly released rails 4.0.0.rc2

It's all part of the learning experience...
Wiped and re-initialized rspec - EncryptedCookieStore (NameError)

Error details:
tim@atom:~/repo/rails_tutorial_sample_app$ bundle exec rspec
No DRb server is running. Running in local process instead ...
/home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc2/lib/rails/application/configuration.rb:144:in `const_get': uninitialized constant ActionDispatch::Session::EncryptedCookieStore (NameError)
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc2/lib/rails/application/configuration.rb:144:in `session_store'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc2/lib/rails/application.rb:346:in `block in default_middleware_stack'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc2/lib/rails/application.rb:308:in `tap'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc2/lib/rails/application.rb:308:in `default_middleware_stack'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc2/lib/rails/engine.rb:494:in `app'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc2/lib/rails/application/finisher.rb:34:in `block in <module:Finisher>'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc2/lib/rails/initializable.rb:30:in `instance_exec'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc2/lib/rails/initializable.rb:30:in `run'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc2/lib/rails/initializable.rb:55:in `block in run_initializers'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc2/lib/rails/initializable.rb:54:in `run_initializers'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc2/lib/rails/application.rb:215:in `initialize!'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/railties-4.0.0.rc2/lib/rails/railtie/configurable.rb:30:in `method_missing'
	from /home/tim/repo/rails_tutorial_sample_app/config/environment.rb:5:in `<top (required)>'
	from /home/tim/repo/rails_tutorial_sample_app/spec/spec_helper.rb:13:in `require'
	from /home/tim/repo/rails_tutorial_sample_app/spec/spec_helper.rb:13:in `block in <top (required)>'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/spork-1.0.0rc3/lib/spork.rb:24:in `prefork'
	from /home/tim/repo/rails_tutorial_sample_app/spec/spec_helper.rb:6:in `<top (required)>'
	from /home/tim/repo/rails_tutorial_sample_app/spec/features/static_pages_spec.rb:1:in `require'
	from /home/tim/repo/rails_tutorial_sample_app/spec/features/static_pages_spec.rb:1:in `<top (required)>'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `block in load_spec_files'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `each'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load_spec_files'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:22:in `run'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:77:in `rescue in run'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:73:in `run'
	from /home/tim/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17:in `block in autorun'
Added missing require from listing 5.37

No effect, clutching at straws.
I don't know why it worked without this under rails 4.0.0.beta1
Since the change to rails 4.0.0.rc2 the reference to application
helper doesn't work any more.
tbc...
updated cookie store after switch to rails 4.0.0.rc2

http://stackoverflow.com/a/15849479/10245
fixes `bin/rails g rspec:install`
Updated .rspec config for rails 4 rc2, tests pass, 2x warning.

bin/rails g rspec:install
overwrite just the spec_helper
Fix guard config, only initialize rails once (prefork).

This got lost in the regeneration of the config.
Got details of config from updated tutorial app
https://github.com/railstutorial/sample_app_rails_4/blob/50faccb31ecc20b0b59ccc7200067c78ad7fc1e4/spec/spec_helper.rb
Merge, updated to rails rc2 and fixed tests

* rails-rc2:
  Fix guard config, only initialize rails once (prefork).
  Updated .rspec config for rails 4 rc2, tests pass, 2x warning.
  updated cookie store after switch to rails 4.0.0.rc2
  Added missing require from listing 5.37
  Wiped and re-initialized rspec - EncryptedCookieStore (NameError)
  Upgraded to newly released rails 4.0.0.rc2