Sha256: 69fe4141b7bf5a6d68fe60717f1e8dcb67f9b9d5377daa059389958fee1d13af
Contents?: true
Size: 973 Bytes
Versions: 17
Compression:
Stored size: 973 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require File.expand_path(File.dirname(__FILE__) + '/../app/mailers/sorcery_mailer') require File.expand_path(File.dirname(__FILE__) + '/../../shared_examples/user_shared_examples') describe "User with no submodules (core)" do before(:all) do sorcery_reload! end describe User, "when app has plugin loaded" do it "User should respond_to .authenticates_with_sorcery!" do User.should respond_to(:authenticates_with_sorcery!) end end # ----------------- PLUGIN CONFIGURATION ----------------------- it_should_behave_like "rails_3_core_model" describe User, "external users" do it_should_behave_like "external_user" end describe User, "when inherited" do it "should inherit mongo_mapper keys" do User.class_eval do key :blabla end class SubUser < User end SubUser.keys.should include("blabla") end end end
Version data entries
17 entries across 17 versions & 1 rubygems