>
>
> > Here is the error message:
> > --------- Extract start -----------------
> >
> > /usr/local/rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.0.9/lib/
> > active_support/dependencies.rb:235:in `load': /Users/anexiole/projects/
> > try_rails/spec/controllers/brands_controller_spec.rb:164: syntax
> > error, unexpected keyword_end, expecting $end (SyntaxError)
>
>
> This is a syntax error. Please fix that first, and then we can talk about
> scoping :)
>
>
sorry, i fixed the error and now, the error extracts read:
--------- Extract start -----------------
192-168-1-2:controllers gordon$ rake spec:controllers
(in /Users/gordon/projects/movingtorails3)
/usr/local/rvm/rubies/ruby-1.9.2-p290/bin/ruby -S bundle exec rspec
./spec/controllers/application_controller_spec.rb
./spec/controllers/brands_controller_spec.rb
./spec/controllers/home_controller_spec.rb
./spec/controllers/parts_controller_spec.rb
....F...........................
Failures:
1) BrandsController with an admin user signed in creates a new brand entry
assigns a new brand as @brand
Failure/Error: login_admin_user
NameError:
undefined local variable or method `login_admin_user' for
#<RSpec::Core::ExampleGroup::Nested_2::Nested_2::Nested_1:0x00000100e35368>
# ./spec/controllers/brands_controller_spec.rb:46:in `block (3 levels)
in <top (required)>'
Finished in 3.87 seconds
32 examples, 1 failure
Failed examples:
rspec ./spec/controllers/brands_controller_spec.rb:50 # BrandsController
with an admin user signed in creates a new brand entry assigns a new brand
as @brand
rake aborted!
ruby -S bundle exec rspec ./spec/controllers/application_controller_spec.rb
./spec/controllers/brands_controller_spec.rb
./spec/controllers/home_controller_spec.rb
./spec/controllers/parts_controller_spec.rb failed
Tasks: TOP => spec:controllers
(See full trace by running task with --trace)
--
You received this message because you are subscribed to the Google Groups
"rspec" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rspec?hl=en.