Sha256: 83f61238b0807a9c9689653713f4859a088d7b92433d9f3bea03d0771c913542
Contents?: true
Size: 539 Bytes
Versions: 3
Compression:
Stored size: 539 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'rack/oauth2' require 'rspec' def simple_app lambda do |env| [ 200, {'Content-Type' => 'text/plain'}, ["HELLO"] ] end end def assert_error_response(format, error) response = yield case format when :json response.status.should == 400 response.body.should match("\"error\":\"#{error}\"") when :query response.status.should == 302 response.location.should match("error=#{error}") end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rack-oauth2-0.2.2.1 | spec/spec_helper.rb |
rack-oauth2-0.2.3 | spec/spec_helper.rb |
rack-oauth2-0.2.2 | spec/spec_helper.rb |