Sha256: 538323b4ee71c91b27fff24a45eacbf3ef9059a3ded787ac395e7dcfa78b3036
Contents?: true
Size: 864 Bytes
Versions: 3
Compression:
Stored size: 864 Bytes
Contents
require 'spec_helper' class TestUserModel include Adauth::Rails::ModelBridge attr_accessor :name AdauthMappings = { :name => :name } AdauthSearchField = [:name] def self.find_by_name(name) TestUserModel.new end def save return true end end describe Adauth::Rails::ModelBridge do let(:user) do Adauth::AdObjects::User.where('sAMAccountName', test_data("domain", "breakable_user")).first end it "should extend", :no_ad => true do TestUserModel.should respond_to :create_from_adauth end it "should create the model" do default_config TestUserModel.create_from_adauth(user) end it "should return and create the model" do default_config TestUserModel.return_and_create_from_adauth(user) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
adauth-2.0.5 | spec/adauth_rails_model_bridge_spec.rb |
adauth-2.0.4 | spec/adauth_rails_model_bridge_spec.rb |
adauth-2.0.3 | spec/adauth_rails_model_bridge_spec.rb |