Skip to content

Commit

Permalink
Fix tests after rebase from qa
Browse files Browse the repository at this point in the history
  • Loading branch information
Janell-Huyck committed Oct 17, 2024
1 parent b2ce1bd commit be6a84f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
t.bigint "record_id", null: false
t.bigint "blob_id", null: false
t.integer "record_id", null: false
t.integer "blob_id", null: false
t.datetime "created_at", null: false
t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
Expand All @@ -42,7 +42,7 @@
end

create_table "active_storage_variant_records", force: :cascade do |t|
t.bigint "blob_id", null: false
t.integer "blob_id", null: false
t.string "variation_digest", null: false
t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true
end
Expand Down
9 changes: 6 additions & 3 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,24 @@ class AddSeedObjects < ActiveRecord::Migration[5.1]
display_name: 'John Green',
password: 'notapass',
password_confirmation: 'notapass',
role: 'read_only'
role: 'read_only',
username: 'johngreen'
},
{
email: '[email protected]',
display_name: 'JK Rowling',
password: 'notapass',
password_confirmation: 'notapass',
role: 'standard'
role: 'standard',
username: 'jkrowling'
},
{
email: '[email protected]',
display_name: 'Chuck Greenman',
password: 'notapass',
password_confirmation: 'notapass',
role: 'admin'
role: 'admin',
username: 'chuck'
}]
)

Expand Down
6 changes: 3 additions & 3 deletions spec/seeds/seeds_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ def with_seedable(value)

it 'seeds the user data' do
expect(User.count).to be > 0
expect(User.find_by(email: 'johngreen@example.com')).not_to be_nil
expect(User.find_by(email: 'jkrowling@example.com')).not_to be_nil
expect(User.find_by(email: 'chuck@chuck.codes')).not_to be_nil
expect(User.find_by(email: 'johngreen@uc.edu')).not_to be_nil
expect(User.find_by(email: 'jkrowling@uc.edu')).not_to be_nil
expect(User.find_by(email: 'chuck@uc.edu')).not_to be_nil
end

it 'seeds the conservation record data' do
Expand Down

0 comments on commit be6a84f

Please sign in to comment.