Sha256: 6dd020cd4eac96a6c50db193783799589c606750b86b59fca0c7e4923995fc60

Contents?: true

Size: 489 Bytes

Versions: 6

Compression:

Stored size: 489 Bytes

Contents

require 'spec_helper'
require 'shared_examples/user_brute_force_protection_shared_examples'

describe User, 'with brute_force_protection submodule', active_record: true do
  before(:all) do
    ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate/brute_force_protection")
    User.reset_column_information
  end

  after(:all) do
    ActiveRecord::Migrator.rollback("#{Rails.root}/db/migrate/brute_force_protection")
  end

  it_behaves_like 'rails_3_brute_force_protection_model'
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sorcery-0.12.0 spec/active_record/user_brute_force_protection_spec.rb
sorcery-0.11.0 spec/active_record/user_brute_force_protection_spec.rb
sorcery-0.10.3 spec/active_record/user_brute_force_protection_spec.rb
sorcery-0.10.2 spec/active_record/user_brute_force_protection_spec.rb
sorcery-0.10.1 spec/active_record/user_brute_force_protection_spec.rb
sorcery-0.10.0 spec/active_record/user_brute_force_protection_spec.rb