Created
August 18, 2014 00:25
-
-
Save xander-miller/cfd2e0e455d488c5cecb to your computer and use it in GitHub Desktop.
rspec 3 hates me.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FFFFFFFFF........ | |
Failures: | |
1) ApplicationHelper#display_active returns '' if the current controller action does not equal the argument | |
Failure/Error: helper.stub(:controller_action_name).and_return('welcome#about') | |
NameError: | |
undefined local variable or method `helper' for #<RSpec::ExampleGroups::ApplicationHelper::DisplayActive:0xbcb35d0> | |
# ./spec/helpers/application_helper_spec.rb:33:in `block (3 levels) in <top (required)>' | |
2) ApplicationHelper#display_active returns 'active' if the current controller action equals the argument | |
Failure/Error: helper.stub(:controller_action_name).and_return('welcome#about') | |
NameError: | |
undefined local variable or method `helper' for #<RSpec::ExampleGroups::ApplicationHelper::DisplayActive:0xbcb17e4> | |
# ./spec/helpers/application_helper_spec.rb:28:in `block (3 levels) in <top (required)>' | |
3) ApplicationHelper#controller_action_name calls #controller_name | |
Failure/Error: helper.should_receive(:controller_name) | |
NameError: | |
undefined local variable or method `helper' for #<RSpec::ExampleGroups::ApplicationHelper::ControllerActionName:0xbc9b8cc> | |
# ./spec/helpers/application_helper_spec.rb:15:in `block (3 levels) in <top (required)>' | |
4) ApplicationHelper#controller_action_name returns a concatination of #controller_name and #action_name | |
Failure/Error: helper.stub(:controller_name).and_return('welcome') | |
NameError: | |
undefined local variable or method `helper' for #<RSpec::ExampleGroups::ApplicationHelper::ControllerActionName:0xbc99644> | |
# ./spec/helpers/application_helper_spec.rb:20:in `block (3 levels) in <top (required)>' | |
5) ApplicationHelper#controller_action_name calls #action_name | |
Failure/Error: helper.should_receive(:action_name) | |
NameError: | |
undefined local variable or method `helper' for #<RSpec::ExampleGroups::ApplicationHelper::ControllerActionName:0xbc9772c> | |
# ./spec/helpers/application_helper_spec.rb:10:in `block (3 levels) in <top (required)>' | |
6) layouts/application _navbar includes "About" pill | |
Failure/Error: render | |
NameError: | |
undefined local variable or method `render' for #<RSpec::ExampleGroups::LayoutsApplication::Navbar:0xbc95490> | |
# ./spec/views/layouts/application.html.erb_spec.rb:11:in `block (3 levels) in <top (required)>' | |
7) layouts/application _navbar includes "Portfolio" pill | |
Failure/Error: render | |
NameError: | |
undefined local variable or method `render' for #<RSpec::ExampleGroups::LayoutsApplication::Navbar:0xbc63a80> | |
# ./spec/views/layouts/application.html.erb_spec.rb:21:in `block (3 levels) in <top (required)>' | |
8) layouts/application _navbar includes "Contact" pill | |
Failure/Error: render | |
NameError: | |
undefined local variable or method `render' for #<RSpec::ExampleGroups::LayoutsApplication::Navbar:0xbc61f14> | |
# ./spec/views/layouts/application.html.erb_spec.rb:16:in `block (3 levels) in <top (required)>' | |
9) layouts/application _navbar renders _navbar partial | |
Failure/Error: render | |
NameError: | |
undefined local variable or method `render' for #<RSpec::ExampleGroups::LayoutsApplication::Navbar:0xbc600c4> | |
# ./spec/views/layouts/application.html.erb_spec.rb:6:in `block (3 levels) in <top (required)>' | |
Deprecation Warnings: | |
Filtering by an `:example_group` subhash is deprecated. Use the subhash to filter directly instead. Called from /home/vagrant/.rvm/gems/ruby-2.1.2@rails-4.1/gems/pundit-0.2.3/lib/pundit/rspec.rb:49:in `block in <top (required)>'. | |
Requiring `rspec/autorun` when running RSpec via the `rspec` command is deprecated. Called from /home/vagrant/.rvm/gems/ruby-2.1.2@rails-4.1/gems/activesupport-4.1.4/lib/active_support/dependencies.rb:247:in `require'. | |
If you need more of the backtrace for any of these deprecations to | |
identify where to make the necessary changes, you can configure | |
`config.raise_errors_for_deprecations!`, and it will turn the | |
deprecation warnings into errors, giving you the full backtrace. | |
2 deprecation warnings total | |
Finished in 0.2369 seconds (files took 5.34 seconds to load) | |
17 examples, 9 failures | |
Failed examples: | |
rspec ./spec/helpers/application_helper_spec.rb:32 # ApplicationHelper#display_active returns '' if the current controller action does not equal the argument | |
rspec ./spec/helpers/application_helper_spec.rb:27 # ApplicationHelper#display_active returns 'active' if the current controller action equals the argument | |
rspec ./spec/helpers/application_helper_spec.rb:14 # ApplicationHelper#controller_action_name calls #controller_name | |
rspec ./spec/helpers/application_helper_spec.rb:19 # ApplicationHelper#controller_action_name returns a concatination of #controller_name and #action_name | |
rspec ./spec/helpers/application_helper_spec.rb:9 # ApplicationHelper#controller_action_name calls #action_name | |
rspec ./spec/views/layouts/application.html.erb_spec.rb:10 # layouts/application _navbar includes "About" pill | |
rspec ./spec/views/layouts/application.html.erb_spec.rb:20 # layouts/application _navbar includes "Portfolio" pill | |
rspec ./spec/views/layouts/application.html.erb_spec.rb:15 # layouts/application _navbar includes "Contact" pill | |
rspec ./spec/views/layouts/application.html.erb_spec.rb:5 # layouts/application _navbar renders _navbar partial | |
Randomized with seed 53442 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try this, works for me ;]
https://www.relishapp.com/rspec/rspec-rails/docs/upgrade