Sha256: f7faa318469f14d2cfb7d976e8c053bf080efb14fdedbec6f97d2677f998acd2
Contents?: true
Size: 1.09 KB
Versions: 22
Compression:
Stored size: 1.09 KB
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 "should respond to the plugin activation class method" do ActiveRecord::Base.should respond_to(:authenticates_with_sorcery!) end 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 before(:all) do ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate/external") sorcery_reload!() end after(:all) do ActiveRecord::Migrator.rollback("#{Rails.root}/db/migrate/external") end it_should_behave_like "external_user" end end
Version data entries
22 entries across 22 versions & 1 rubygems