spec/lib/open_sesame/configuration_spec.rb in opensesame-0.3.0 vs spec/lib/open_sesame/configuration_spec.rb in opensesame-0.4.0

- old
+ new

@@ -29,9 +29,25 @@ it "auto_access sets provider to attempt auto login" do configuration.auto_login "github" configuration.auto_access_provider.should == "github" end + it "sets all redirects to" do + configuration.redirect_to "/foobar" + configuration.after_login_path.should == "/foobar" + configuration.after_logout_path.should == "/foobar" + end + + it "sets after_login path" do + configuration.redirect_after_login "/foobar" + configuration.after_login_path.should == "/foobar" + end + + it "sets after_logout redirect_to" do + configuration.redirect_after_logout "/foobar" + configuration.after_logout_path.should == "/foobar" + end + describe "valid?" do it "false when values not set" do configuration.organization "challengepost" configuration.should_not be_valid