Skip to content

Commit

Permalink
Skip send_file to_path spec when run in lint mode
Browse files Browse the repository at this point in the history
In lint mode, bodies in the specs are converted to arrays, so this
spec doesn't pass in lint mode.
  • Loading branch information
jeremyevans committed Feb 17, 2025
1 parent 54c2a7a commit f1d833e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/plugin/sinatra_helpers_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def o.each; yield 'Hello World' end

it "returns response body implementing to_path" do
req[2].to_path.must_equal @file
end
end unless ENV['LINT']

it 'sets the Content-Type response header if a mime-type can be located' do
header(RodaResponseHeaders::CONTENT_TYPE).must_equal 'text/css'
Expand Down

0 comments on commit f1d833e

Please sign in to comment.