Sha256: c11418a51d4334cf6c9286d16f514b999d4ed51493f663ee8198592e41c4b41c
Contents?: true
Size: 1.02 KB
Versions: 11
Compression:
Stored size: 1.02 KB
Contents
require "spec_helper" describe SimpleAuth::Config do it "should yield SimpleAuth::Config class" do SimpleAuth.setup do |config| config.should == SimpleAuth::Config end end it "should use [:email, :login] as credential attributes" do SimpleAuth::Config.credentials.should == [:email, :login] end it "should use User as default model" do SimpleAuth::Config.model.should == :user end specify "crypter should expect 2 block arguments" do SimpleAuth::Config.crypter.arity.should == 2 end specify "salt should expect 1 block argument" do SimpleAuth::Config.salt.arity.should == 1 end specify "salt should return a 64-char long salt" do SimpleAuth::Config.salt.call(nil).size.should == 64 end specify "wipeout session should be disabled" do SimpleAuth::Config.wipeout_session.should be_false end specify "deprecated reset_session accessor" do Kernel.should_receive(:warn).twice SimpleAuth::Config.reset_session = true SimpleAuth::Config.reset_session end end
Version data entries
11 entries across 11 versions & 1 rubygems