Lille
2012-Feb-02 01:26 UTC
[rspec-users] getting ActionController::RoutingError when I test namespaced controllers
Hey folks, Using 2.6, I have functional tests arranged in my spec/controllers directory according to their namespace in my Rails 3 app/controllers directory, e.g., api/some_controller_spec.rb describe Api::SomeController, ... Well, when I run rspec at the directory level, e.g., rspec spec/ controllers/api the test behavior is normal. When I try to run all tests from the spec/controllers root, however, I get tons of failures due to ActionController::RoutingError. What is the fix? Thanks, Lille
Justin Ko
2012-Feb-02 06:55 UTC
[rspec-users] getting ActionController::RoutingError when I test namespaced controllers
On Feb 1, 2012, at 6:26 PM, Lille wrote:> Hey folks, > > Using 2.6, I have functional tests arranged in my spec/controllers > directory according to their namespace in my Rails 3 app/controllers > directory, e.g., > > api/some_controller_spec.rb > > describe Api::SomeController, ... > > Well, when I run rspec at the directory level, e.g., rspec spec/ > controllers/api the test behavior is normal. When I try to run all > tests from the spec/controllers root, however, I get tons of failures > due to ActionController::RoutingError. > > What is the fix? > > Thanks, > > Lille > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-usersWe''re going to need more info than this. 1.) What is the exact error (paste the backtrace)? 2.) What are the exact commands you are running, and from what directory? Here are some things you can try before you reply again: 1.) Does this controller action work in development mode? 2.) Does the test log show that the correct action/controller is being hit? What is it responding with? That should be a good start.
Lille
2012-Feb-02 12:22 UTC
[rspec-users] getting ActionController::RoutingError when I test namespaced controllers
OK, Given spec/controllers and given this is typical of the structure in my functional testing subdirectories...> > api/some_controller_spec.rb > > > ? describe Api::SomeController, ......when I attempt to test everything in the subdirectories from the root using this command -- rspec spec/controllers, I get the following error for every test in the subdirectories: ActionController::RoutingError: No route matches {:controller=>..., :action=>...} Meanwhile, running rspec at each subdirectory yields expected results and the controllers function in development. So, it feels like an rspec configuration thing that I need to adjust to account for the subdirectories, but what? Thanks, Lille
David Chelimsky
2012-Feb-02 13:50 UTC
[rspec-users] getting ActionController::RoutingError when I test namespaced controllers
On Feb 2, 2012, at 6:22 AM, Lille wrote:> OK, > > Given spec/controllers and given this is typical of the structure in > my functional testing subdirectories... > >>> api/some_controller_spec.rb >> >>> describe Api::SomeController, ... > > ...when I attempt to test everything in the subdirectories from the > root using this command -- rspec spec/controllers, I get the following > error for every test in the subdirectories: > > ActionController::RoutingError: > No route matches {:controller=>..., :action=>...} > > Meanwhile, running rspec at each subdirectory yields expected results > and the controllers function in development. > > So, it feels like an rspec configuration thing that I need to adjust > to account for the subdirectories, but what?Lille, This is no more clear than your original post. Justin asked you for the error and you didn''t post it. He asked for the commands and the directories you were running them from and you described them again instead of just pasting them into the email. When you say "running rspec at each subdirectory", I don''t know if you mean: rspec spec/controllers/sub1 or if you mean cd spec/constrollers/sub1 rspec So please copy the precise commands as they appear in your terminal window along with the backtrace you''re getting when they fail. Otherwise we''re just guessing here, and it''s a waste of everybody''s time. Cheers, David
Lille
2012-Feb-03 00:06 UTC
[rspec-users] getting ActionController::RoutingError when I test namespaced controllers
When I use these commands from the application root rspec spec rspec spec/controllers I get errors (an example will be shown below) for every controller test in my subdirectory spec/controllers/api/beta, where the controller namespacing is carried over in any test as follows describe Api::Beta1::ThingController ... Somehow, I do NOT get any errors for the tests in the subdirectory when I run this command from the application root rspec spec/controllers/api/beta Here is an example of the error I get, with backtrace: 23) Api::Beta1::ThingController#loan server-side failure should have status code 500 and expected message body Failure/Error: response = post(action, params) ActionController::RoutingError: No route matches {:controller=>"api/beta1/ thing", :action=>"loan"} # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:464:in `raise_routing_error'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:460:in `rescue in generate'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:452:in `generate'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:493:in `generate'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:489:in `generate_extras'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:485:in `extra_keys'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ actionpack-3.1.0/lib/action_controller/test_case.rb:145:in `assign_parameters'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ actionpack-3.1.0/lib/action_controller/test_case.rb:438:in `process'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ actionpack-3.1.0/lib/action_controller/test_case.rb:49:in `process'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ actionpack-3.1.0/lib/action_controller/test_case.rb:370:in `post'' # ./spec/controllers/api/beta1/thing_controller_spec.rb:72:in `raw_post'' # ./spec/controllers/api/beta1/thing_controller_spec.rb:57:in `block (3 levels) in <top (required)>'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/hooks.rb:35:in `instance_eval'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/hooks.rb:35:in `run_in'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/hooks.rb:70:in `block in run_all'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/hooks.rb:70:in `each'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/hooks.rb:70:in `run_all'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/hooks.rb:116:in `run_hook'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/example_group.rb:221:in `block in eval_before_eachs'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/example_group.rb:221:in `each'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/example_group.rb:221:in `eval_before_eachs'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/example.rb:145:in `run_before_each'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/example.rb:47:in `block in run'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/example.rb:107:in `with_around_hooks'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/example.rb:45:in `run'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/example_group.rb:294:in `block in run_examples'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/example_group.rb:290:in `map'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/example_group.rb:290:in `run_examples'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/example_group.rb:262:in `run'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/example_group.rb:263:in `block in run'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/example_group.rb:263:in `map'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/example_group.rb:263:in `run'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/command_line.rb:24:in `block (2 levels) in run'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/command_line.rb:24:in `map'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/command_line.rb:24:in `block in run'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/reporter.rb:12:in `report'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/command_line.rb:21:in `run'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/runner.rb:80:in `run_in_process'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/runner.rb:69:in `run'' # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- core-2.6.4/lib/rspec/core/runner.rb:11:in `block in autorun'' I missed this issue when developing my tests, because I was running them using the command that succeeds. Now, I''m in trouble because I want to step back and test everything with a simple command from the app root: rpsec spec (Sorry to any bothered readers for any undue brevity in the previous post-response cycle, but I''ve assumed that the type of error (RoutingError) in combination with the way rspec works and fails for my functional tests was adequate to suggest a fix.) Thanks, Lille
David Chelimsky
2012-Feb-03 01:23 UTC
[rspec-users] getting ActionController::RoutingError when I test namespaced controllers
On Feb 2, 2012, at 6:06 PM, Lille wrote:> When I use these commands from the application root > > rspec spec > rspec spec/controllers > > I get errors (an example will be shown below) for every controller > test in my subdirectory spec/controllers/api/beta, where the > controller namespacing is carried over in any test as follows > > describe Api::Beta1::ThingController ... > > Somehow, I do NOT get any errors for the tests in the subdirectory > when I run this command from the application root > > rspec spec/controllers/api/beta > > Here is an example of the error I get, with backtrace: > > 23) Api::Beta1::ThingController#loan server-side failure should have > status code 500 and expected message body > Failure/Error: response = post(action, params) > ActionController::RoutingError: > No route matches {:controller=>"api/beta1/ > thing", :action=>"loan"} > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:464:in > `raise_routing_error'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:460:in > `rescue in generate'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:452:in > `generate'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:493:in > `generate'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:489:in > `generate_extras'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:485:in > `extra_keys'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_controller/test_case.rb:145:in > `assign_parameters'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_controller/test_case.rb:438:in `process'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_controller/test_case.rb:49:in `process'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_controller/test_case.rb:370:in `post'' > # ./spec/controllers/api/beta1/thing_controller_spec.rb:72:in > `raw_post'' > # ./spec/controllers/api/beta1/thing_controller_spec.rb:57:in > `block (3 levels) in <top (required)>'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/hooks.rb:35:in `instance_eval'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/hooks.rb:35:in `run_in'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/hooks.rb:70:in `block in run_all'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/hooks.rb:70:in `each'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/hooks.rb:70:in `run_all'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/hooks.rb:116:in `run_hook'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:221:in `block in > eval_before_eachs'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:221:in `each'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:221:in `eval_before_eachs'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example.rb:145:in `run_before_each'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example.rb:47:in `block in run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example.rb:107:in `with_around_hooks'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example.rb:45:in `run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:294:in `block in > run_examples'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:290:in `map'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:290:in `run_examples'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:262:in `run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:263:in `block in run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:263:in `map'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:263:in `run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/command_line.rb:24:in `block (2 levels) in > run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/command_line.rb:24:in `map'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/command_line.rb:24:in `block in run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/reporter.rb:12:in `report'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/command_line.rb:21:in `run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/runner.rb:80:in `run_in_process'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/runner.rb:69:in `run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/runner.rb:11:in `block in autorun'' > > I missed this issue when developing my tests, because I was running > them using the command that succeeds. Now, I''m in trouble because I > want to step back and test everything with a simple command from the > app root: > > rspec specThanks for the more detailed response. It definitely helps to understand what you''re doing more clearly, though it sadly doesn''t shed enough light on the problem (at least for me - this is not a problem I remember hearing of before). Can you post the relevant parts of config/routes.rb and the spec that''s failing in the example above?
Andrew Premdas
2012-Feb-03 03:57 UTC
[rspec-users] getting ActionController::RoutingError when I test namespaced controllers
On 3 February 2012 00:06, Lille <lille.penguini at gmail.com> wrote:> When I use these commands from the application root > > rspec spec > rspec spec/controllers > > I get errors (an example will be shown below) for every controller > test in my subdirectory spec/controllers/api/beta, where the > controller namespacing is carried over in any test as follows > > describe Api::Beta1::ThingController ... > > Somehow, I do NOT get any errors for the tests in the subdirectory > when I run this command from the application root > > rspec spec/controllers/api/beta > > Here is an example of the error I get, with backtrace: > > 23) Api::Beta1::ThingController#loan server-side failure should have > status code 500 and expected message body > Failure/Error: response = post(action, params) > ActionController::RoutingError: > No route matches {:controller=>"api/beta1/ > thing", :action=>"loan"} > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:464:in > `raise_routing_error'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:460:in > `rescue in generate'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:452:in > `generate'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:493:in > `generate'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:489:in > `generate_extras'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_dispatch/routing/route_set.rb:485:in > `extra_keys'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_controller/test_case.rb:145:in > `assign_parameters'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_controller/test_case.rb:438:in `process'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_controller/test_case.rb:49:in `process'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/ > actionpack-3.1.0/lib/action_controller/test_case.rb:370:in `post'' > # ./spec/controllers/api/beta1/thing_controller_spec.rb:72:in > `raw_post'' > # ./spec/controllers/api/beta1/thing_controller_spec.rb:57:in > `block (3 levels) in <top (required)>'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/hooks.rb:35:in `instance_eval'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/hooks.rb:35:in `run_in'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/hooks.rb:70:in `block in run_all'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/hooks.rb:70:in `each'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/hooks.rb:70:in `run_all'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/hooks.rb:116:in `run_hook'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:221:in `block in > eval_before_eachs'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:221:in `each'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:221:in `eval_before_eachs'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example.rb:145:in `run_before_each'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example.rb:47:in `block in run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example.rb:107:in `with_around_hooks'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example.rb:45:in `run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:294:in `block in > run_examples'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:290:in `map'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:290:in `run_examples'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:262:in `run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:263:in `block in run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:263:in `map'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/example_group.rb:263:in `run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/command_line.rb:24:in `block (2 levels) in > run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/command_line.rb:24:in `map'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/command_line.rb:24:in `block in run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/reporter.rb:12:in `report'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/command_line.rb:21:in `run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/runner.rb:80:in `run_in_process'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/runner.rb:69:in `run'' > # /Users/lille/.rvm/gems/ruby-1.9.2-p290 at rails310/gems/rspec- > core-2.6.4/lib/rspec/core/runner.rb:11:in `block in autorun'' > > I missed this issue when developing my tests, because I was running > them using the command that succeeds. Now, I''m in trouble because I > want to step back and test everything with a simple command from the > app root: > > rpsec spec > > (Sorry to any bothered readers for any undue brevity in the previous > post-response cycle, but I''ve assumed that the type of error > (RoutingError) in combination with the way rspec works and fails for > my functional tests was adequate to suggest a fix.) > > Thanks, > > Lille > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >Just a wild guess here, but shouldn''t the folder match the namespace, you have a beta folder and a Beta1 namespace -- ------------------------ Andrew Premdas blog.andrew.premdas.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20120203/918734b8/attachment-0001.html>