spec/warden/hooks_spec.rb in hassox-warden-0.2.1 vs spec/warden/hooks_spec.rb in hassox-warden-0.2.2

- old
+ new

@@ -58,10 +58,10 @@ end it "should run each after_authentication hook after authentication is run" do RAM.after_authentication{|u,a,o| a.env['warden.spec.hook.baz'] = "run baz"} RAM.after_authentication{|u,a,o| a.env['warden.spec.hook.paz'] = "run paz"} - app = lambda{|e| e['warden'].authenticated?(:pass); valid_response} + app = lambda{|e| e['warden'].authenticate(:pass); valid_response} env = env_with_params setup_rack(app).call(env) env['warden.spec.hook.baz'].should == 'run baz' env['warden.spec.hook.paz'].should == 'run paz' end \ No newline at end of file