dblock
2011-Jun-22 20:09 UTC
[rspec-users] How do I change www.example.com in rspec tests?
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.
Maybe Matching Threads
- rspec model testing - test on user defined validation- How do I test that the create failed.
- RSpec on Ruby 1.9: before(:all) (Not Yet Implemented) pending messages instead of tests
- warning: toplevel constant XYZ referenced Admin:XYZ
- RSpec, shoulda-matchers and Rails model attributes validations
- Best way to do automated acceptance tests