Sha256: b3d97aacc145368352b6098aae352a6deb70401fb4dfc69d1bcf29f7d0dd1d74

Contents?: true

Size: 492 Bytes

Versions: 5

Compression:

Stored size: 492 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

5 entries across 5 versions & 3 rubygems

Version Path
sorcery-0.9.1 spec/active_record/user_brute_force_protection_spec.rb
sorcery-0.9.0 spec/active_record/user_brute_force_protection_spec.rb
cbsorcery-0.8.6 spec/active_record/user_brute_force_protection_spec.rb
cb-sorcery-0.8.6 spec/active_record/user_brute_force_protection_spec.rb
sorcery-0.8.6 spec/active_record/user_brute_force_protection_spec.rb