Sha256: 828e901961561ba5678f569de02854fb511586687b434a366e7b1fe8826b305d

Contents?: true

Size: 193 Bytes

Versions: 7

Compression:

Stored size: 193 Bytes

Contents

module ResponseHelpers
  def should_redirect_to(location, code=302)
    should_be_a_valid_response
    response_code.should == code
    response_headers['Location'].should == location
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ajax-1.0.8 spec/support/response_helpers.rb
ajax-1.0.7 spec/support/response_helpers.rb
ajax-1.0.6 spec/support/response_helpers.rb
ajax-1.0.5 spec/support/response_helpers.rb
ajax-1.0.4 spec/support/response_helpers.rb
ajax-1.0.3 spec/support/response_helpers.rb
ajax-1.0.2 spec/support/response_helpers.rb