spec/models/account_spec.rb in bookingsync-engine-0.2.1 vs spec/models/account_spec.rb in bookingsync-engine-0.2.2
- old
+ new
@@ -11,9 +11,13 @@
expect(account.oauth_refresh_token).to eql("refresh token")
expect(account.oauth_expires_at).to eql("expires at")
end
end
+ describe "validations" do
+ it { is_expected.to validate_uniqueness_of(:uid) }
+ end
+
describe ".from_omniauth" do
before { Account.create!(provider: "bookingsync", uid: 456) }
let(:auth) { OmniAuth.config.mock_auth[:bookingsync] }