Sha256: d3d2d45b3fc0970d12440a9b5f2e25b00c4ea1da921e924fe4e22c226a09bf53

Contents?: true

Size: 375 Bytes

Versions: 11

Compression:

Stored size: 375 Bytes

Contents

require 'spec_helper'

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

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

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
devise-authy-1.7.0 spec/models/authy_authenticatable_spec.rb
devise-authy-1.6.0 spec/models/authy_authenticatable_spec.rb
devise-authy-1.5.3 spec/models/authy_authenticatable.rb
devise-authy-1.5.2 spec/models/authy_authenticatable.rb
devise-authy-1.5.1 spec/models/authy_authenticatable.rb
devise-authy-1.5.0 spec/models/authy_authenticatable.rb
devise-authy-1.4.0 spec/models/authy_authenticatable.rb
devise-authy-1.3.0 spec/models/authy_authenticatable.rb
devise-authy-1.2.2 spec/models/authy_authenticatable.rb
devise-authy-1.2.1 spec/models/authy_authenticatable.rb
devise-authy-1.0.0 spec/models/authy_authenticatable.rb