Skip to content

Commit

Permalink
Fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
cyu committed Oct 24, 2023
1 parent e823594 commit b30b86d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/cors_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ def load_app(name, options = {})
_(last_response.headers['Access-Control-Allow-Origin']).must_equal '*'
end

it "should allow resource paths containing $ char" do
preflight_request('http://localhost:3000', '/$batch', method: :post )
it "should allow resource paths containing '$' char" do
preflight_request('http://localhost:3000', '/$batch', method: :post)
_(last_response).must_render_cors_success
_(last_response.headers['Access-Control-Allow-Origin']).wont_equal nil
_(last_response.headers['Access-Control-Allow-Methods']).must_equal 'POST'
Expand Down

0 comments on commit b30b86d

Please sign in to comment.