Sha256: cf6380bc6ff229d86f83aea87dfb35fcdbc0536250a81052bc3443bfdc166a0c
Contents?: true
Size: 1009 Bytes
Versions: 1
Compression:
Stored size: 1009 Bytes
Contents
require 'spec_helper' require 'rails_app/app/mailers/sorcery_mailer' require '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") User.reset_column_information 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sorcery-0.8.5 | spec/active_record/user_spec.rb |