test/force_ssl_test.rb in tynn-1.0.0 vs test/force_ssl_test.rb in tynn-1.1.0
- old
+ new
@@ -3,11 +3,11 @@
setup do
Tynn::Test.new
end
test "redirects to https" do |app|
- Tynn.helpers(Tynn::ForceSSL)
+ Tynn.plugin(Tynn::ForceSSL)
Tynn.define do
end
app.get("/")
@@ -15,10 +15,10 @@
assert_equal 301, app.res.status
assert_equal "https://example.org/", app.res.location
end
test "https request" do |app|
- Tynn.helpers(Tynn::ForceSSL)
+ Tynn.plugin(Tynn::ForceSSL)
Tynn.define do
root do
res.write("secure")
end