I have an odd problem. I got controllers in a namespace and
controllers outside of the namespace. For example, I have a
PagesController and a Admin::PagesController.
When I run rspec from the top, tests pass and I get the following
warning:
spec/controllers/admin/pages_controller_spec.rb:4: warni
None of this makes any sense :)
dblock@dblock-magenta:~/source/Gravity/dblock$ find . -name "*.rb" |
xargs grep PagesController
./spec/controllers/admin/pages_controller_spec.rb:describe
Admin::PagesController do
./spec/controllers/pages_controller_spec.rb:describe PagesControlle
> To make the warning go away, you can use ::PagesController where you
> mean the top-level PagesController.
I tried saying ::PagesController in the 2 places it's declared (the
controller itself and the spec), no difference.
___
rspec-users mailing list
Top 4 lines of pages_controller_spec.
require 'spec_helper'
require 'spec_controllers_helper'
describe PagesController do
before(:each) do
controller.stub!(:app_initialization).and_return(true)
end
Top 4 lines of admin/pages_controller_spec.
require 'spec_helper'
require 'spec_controlle
I am seeing a problem with running rspec (rspec 2.6.0, rspec-core
2.6.4) with --drb (our default) when spork is not running. It fails to
return a non-zero error code.
Anyone has any suggestions where I should start looking? Known bug?
Thx
dB.
---
dblock@dblock-magenta:~/source/Gravity/dblock
It seems like the problem is in Ruby, described in
https://github.com/jnicklas/capybara/issues/178
But I fail to see how I can workaround that :( Any ideas?
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspe
Ok, sorry for the spam. I applied the same change that was done in
minitest to rspec and it seems to work. Pull request here:
https://github.com/rspec/rspec-core/pull/410.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailma
It looks like request.host is set to www.example.com, how do I change
that?
I want to change it for all tests, and it seems that request is only
available within the tests themselves (tried to do it in
RSpec.configure but that didn't work.
___
rspec-user
I love conventions. But I am trying to write tests for an API,which
lives in ... api. I need to be making http requests, so all my tests
work when put in spec/requests. How can I make that spec/api?
(Obviously renaming requests into api doesn't bring in the code that
lets me do GETs).
_