Skip to content

Commit

Permalink
fix: fail fast when RspecApiDocumentation.configuration.app is null
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed Apr 25, 2024
1 parent 9d287a1 commit 673d267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rspec_api_documentation/rack_test_client.rb
Expand Up @@ -61,7 +61,7 @@ def rack_test_session
rescue LoadError
raise "#{self.class.name} requires Rack::Test >= 0.5.5. Please add it to your test dependencies."
end
end.new(app)
end.new(app || fail("RspecApiDocumentation.configuration.app is nil"))
end
end
end

0 comments on commit 673d267

Please sign in to comment.