Sha256: 24b98c08bb2e04e829073158e501784bd85b57f578b923df1ecb6db12cbf05b8
Contents?: true
Size: 573 Bytes
Versions: 14
Compression:
Stored size: 573 Bytes
Contents
require 'rails_helper' RSpec.describe Identity, :type => :model do it "should always have a provider and uid" do i = Identity.create expect( i ).to_not be_valid i = Identity.create( :provider => "test" ) expect( i ).to_not be_valid i = Identity.create( :provider => "test", :uid => "1" ) expect( i ).to be_valid end it "should have a unique uid" do i = Identity.create( :provider => "test", :uid => "1" ) expect( i ).to be_valid i = Identity.create( :provider => "test", :uid => "1" ) expect( i ).to_not be_valid end end
Version data entries
14 entries across 14 versions & 1 rubygems