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

Version Path
sorcery-0.8.4 spec/rails3/spec/user_spec.rb
sorcery-0.8.2 spec/rails3/spec/user_spec.rb
sorcery-0.8.1 spec/rails3/spec/user_spec.rb
sorcery-0.8.0 spec/rails3/spec/user_spec.rb
sorcery-0.7.13 spec/rails3/spec/user_spec.rb
sorcery-0.7.12 spec/rails3/spec/user_spec.rb
sorcery-0.7.11 spec/rails3/spec/user_spec.rb
sorcery-0.7.10 spec/rails3/spec/user_spec.rb
sorcery-0.7.9 spec/rails3/spec/user_spec.rb
sorcery-0.7.8 spec/rails3/spec/user_spec.rb
sorcery-0.7.7 spec/rails3/spec/user_spec.rb
sorcery-0.7.6 spec/rails3/spec/user_spec.rb
sorcery-0.7.5 spec/rails3/spec/user_spec.rb
sorcery-0.7.4 spec/rails3/spec/user_spec.rb
sorcery-0.7.3 spec/rails3/spec/user_spec.rb
sorcery-0.7.2 spec/rails3/spec/user_spec.rb
sorcery-0.7.1 spec/rails3/spec/user_spec.rb
sorcery-0.7.0 spec/rails3/spec/user_spec.rb
sorcery-0.6.1 spec/rails3/spec/user_spec.rb
sorcery-0.6.0 spec/rails3/spec/user_spec.rb