test/post_test.rb in fakes3-0.2.5 vs test/post_test.rb in fakes3-1.0.0

- old
+ new

@@ -9,12 +9,16 @@ def teardown end def test_options - res= RestClient.options(@url) { |response| + RestClient.options(@url) do |response| + assert_equal(response.code, 200) assert_equal(response.headers[:access_control_allow_origin],"*") - } + assert_equal(response.headers[:access_control_allow_methods], "PUT, POST, HEAD, GET, OPTIONS") + assert_equal(response.headers[:access_control_allow_headers], "Accept, Content-Type, Authorization, Content-Length, ETag, X-CSRF-Token") + assert_equal(response.headers[:access_control_expose_headers], "ETag") + end end def test_redirect res = RestClient.post( @url,