use app.set and not apply_configuration
authorLunar <lunar@anargeek.net>
Mon, 13 Feb 2012 18:43:37 +0000 (19:43 +0100)
committerLunar <lunar@anargeek.net>
Tue, 14 Feb 2012 17:38:58 +0000 (18:38 +0100)
spec/coquelicot_spec.rb

index 279fa3a..409dff3 100644 (file)
@@ -35,8 +35,8 @@ describe 'Coquelicot' do
   end
 
   before do
-    # set a special test password
-    app.set :upload_password, Digest::SHA1.hexdigest(UPLOAD_PASSWORD)
+    app.set :authentication_method, { :name => :simplepass,
+                                      :upload_password => Digest::SHA1.hexdigest(UPLOAD_PASSWORD) }
 
     app.set :environment, :test
   end