Sha256: 380528d0f7f9ab2d7f5ef5077001771b8ad96257a73e2fd1240a104f8f1a650f

Contents?: true

Size: 436 Bytes

Versions: 22

Compression:

Stored size: 436 Bytes

Contents

require 'rails_helper'

describe Kuroko2::User do
  describe '#google_account?' do
    subject { user.google_account? }

    context 'provider is google_oauth2' do
      let(:user) { create(:user, provider: 'google_oauth2') }
      it { is_expected.to be_truthy }
    end

    context 'provider is not google_oauth2' do
      let(:user) { create(:user, provider: 'group_email') }
      it { is_expected.to be_falsey }
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
kuroko2-0.8.0 spec/models/user_spec.rb
kuroko2-0.7.0 spec/models/user_spec.rb
kuroko2-0.6.0 spec/models/user_spec.rb
kuroko2-0.5.2 spec/models/user_spec.rb
kuroko2-0.5.1 spec/models/user_spec.rb
kuroko2-0.5.0 spec/models/user_spec.rb
kuroko2-0.4.6 spec/models/user_spec.rb
kuroko2-0.4.5 spec/models/user_spec.rb
kuroko2-0.4.4 spec/models/user_spec.rb
kuroko2-0.4.3 spec/models/user_spec.rb
kuroko2-0.4.2 spec/models/user_spec.rb
kuroko2-0.4.1 spec/models/user_spec.rb
kuroko2-0.4.0 spec/models/user_spec.rb
kuroko2-0.3.4 spec/models/user_spec.rb
kuroko2-0.3.3 spec/models/user_spec.rb
kuroko2-0.3.2 spec/models/user_spec.rb
kuroko2-0.3.1 spec/models/user_spec.rb
kuroko2-0.3.0 spec/models/user_spec.rb
kuroko2-0.2.3 spec/models/user_spec.rb
kuroko2-0.2.2 spec/models/user_spec.rb