Sha256: 16510bfb86d2b17e5ed880de77433ebddac507a9113ef43454c529f9f1581699

Contents?: true

Size: 397 Bytes

Versions: 4

Compression:

Stored size: 397 Bytes

Contents

require 'spec_helper'

describe Devise::Models::AuthyAuthenticatable, type: :model do
  before(:each) do
    @user = create_user(:authy_id => '20')
  end

  describe "User#find_by_authy_id" do
    it "Should find the user" do
      expect(User.find_by_authy_id('20')).not_to be_nil
    end

    it "Shouldn't find the user" do
      expect(User.find_by_authy_id('80')).to be_nil
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise-authy-1.8.3 spec/models/authy_authenticatable_spec.rb
devise-authy-1.8.2 spec/models/authy_authenticatable_spec.rb
devise-authy-1.8.1 spec/models/authy_authenticatable_spec.rb
devise-authy-1.8.0 spec/models/authy_authenticatable_spec.rb