Sha256: 870c8163d300982af59b7365fa9aba31b87f36c53be6fb1ea7c29d808ef887ba

Contents?: true

Size: 521 Bytes

Versions: 5

Compression:

Stored size: 521 Bytes

Contents

require "spec_helper"

describe SimpleAuth::Config do
  it "yields SimpleAuth::Config class" do
    SimpleAuth.setup do |config|
      expect(config).to eq(SimpleAuth::Config)
    end
  end

  it "uses [:email, :login] as credential attributes" do
    expect(SimpleAuth::Config.credentials).to eq([:email, :login])
  end

  it "uses User as default model" do
    expect(SimpleAuth::Config.model).to eq(:user)
  end

  it "disables session wipeout" do
    expect(SimpleAuth::Config.wipeout_session).to be_falsey
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
simple_auth-2.0.4 spec/simple_auth/config_spec.rb
simple_auth-2.0.3 spec/simple_auth/config_spec.rb
simple_auth-2.0.2 spec/simple_auth/config_spec.rb
simple_auth-2.0.1 spec/simple_auth/config_spec.rb
simple_auth-2.0.0 spec/simple_auth/config_spec.rb