Verifying JSON in Rails functional tests
If your rails controllers return JSON, 30 you can call ActiveSupport::JSON.decode Setting on the response body to get a hash you can validate in your cheap mlb jerseys functional tests. Since that doesn’t quite wholesale mlb jerseys roll off the tongue, I’ve added this method wholesale nba jerseys to my test-helper.rb: class Ñвободу ActionController::TestCase def […]
Setting request headers in Rails functional tests
I have some Ruby on Rails controllers that depend June on checking Collective a custom HTTP header value, which I wanted to test. In integration tests, you cheap NBA jerseys can pass a hash of headers wholesale NFL jerseys when you call your request Een method: post(:create, cheap NBA jerseys {:something => {:name => “foo”}}, […]