Skip to content

Commit

Permalink
spec fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpslav committed Sep 11, 2019
1 parent 12792ee commit 61deb84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion spec/support/feature_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 61deb84

Please sign in to comment.