Sha256: 73c7f995bb085e0076be63f1db623a0f36599febaa6141a641b8cf53de6b82fb
Contents?: true
Size: 675 Bytes
Versions: 1
Compression:
Stored size: 675 Bytes
Contents
require 'spec_helper' require 'switch_user' describe SwitchUser do it "has a default provider" do SwitchUser.provider.should == :devise end describe "#available_scopes" do it "returns a list of available scopes" do SwitchUser.available_scopes.should == [:user] end end describe "assigning the provider" do it "sets the provider" do # ensure we aren't breaking existing functionality SwitchUser.provider = :sorcery SwitchUser.provider.should == :sorcery end it "sets the provider class" do SwitchUser.provider = :devise SwitchUser.provider_class.should == SwitchUser::Provider::Devise end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
switch_user-0.9.0 | spec/switch_user_spec.rb |