From 61deb84404c6a31a93028a5848fa6aed61241354 Mon Sep 17 00:00:00 2001 From: JP Slavinsky Date: Wed, 11 Sep 2019 14:20:34 -0600 Subject: [PATCH] spec fixes --- db/schema.rb | 2 +- spec/support/feature_helpers.rb | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/db/schema.rb b/db/schema.rb index d89dc0adc..53a94a008 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -113,8 +113,8 @@ create_table "fine_print_signatures", id: :serial, force: :cascade do |t| t.integer "contract_id", null: false - t.integer "user_id", null: false t.string "user_type", null: false + t.integer "user_id", null: false t.datetime "created_at", null: false t.datetime "updated_at", null: false t.boolean "is_implicit", default: false, null: false diff --git a/spec/support/feature_helpers.rb b/spec/support/feature_helpers.rb index c364c867f..5875df29c 100644 --- a/spec/support/feature_helpers.rb +++ b/spec/support/feature_helpers.rb @@ -88,7 +88,9 @@ def link_in_last_email end def create_application(skip_terms: false) - app = FactoryBot.create(:doorkeeper_application, :trusted, skip_terms: skip_terms) + app = FactoryBot.create(:doorkeeper_application, skip_terms: skip_terms, + can_access_private_user_data: true, + can_skip_oauth_screen: true) # We want to provide a local "external" redirect uri so our specs aren't actually # making HTTP calls against real external URLs like "example.com"