Fix some tests
This commit is contained in:
@@ -2,12 +2,12 @@ require "test_helper"
|
||||
|
||||
class ScansControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get index" do
|
||||
get scans_index_url
|
||||
get scans_path
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get create" do
|
||||
get scans_create_url
|
||||
test "should create scan" do
|
||||
post scans_path
|
||||
assert_response :success
|
||||
end
|
||||
end
|
||||
|
||||
4
test/fixtures/acquisition_sources.yml
vendored
4
test/fixtures/acquisition_sources.yml
vendored
@@ -1,11 +1,11 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
name: MyString
|
||||
name: Purchase
|
||||
description: MyText
|
||||
active: false
|
||||
|
||||
two:
|
||||
name: MyString
|
||||
name: Gift
|
||||
description: MyText
|
||||
active: false
|
||||
|
||||
4
test/fixtures/item_statuses.yml
vendored
4
test/fixtures/item_statuses.yml
vendored
@@ -1,11 +1,11 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
name: MyString
|
||||
name: Available
|
||||
description: MyText
|
||||
active: false
|
||||
|
||||
two:
|
||||
name: MyString
|
||||
name: CheckedOut
|
||||
description: MyText
|
||||
active: false
|
||||
|
||||
4
test/fixtures/ownership_statuses.yml
vendored
4
test/fixtures/ownership_statuses.yml
vendored
@@ -1,11 +1,11 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
name: MyString
|
||||
name: Owned
|
||||
description: MyText
|
||||
active: false
|
||||
|
||||
two:
|
||||
name: MyString
|
||||
name: Borrowed
|
||||
description: MyText
|
||||
active: false
|
||||
|
||||
9
test/fixtures/recently_scanneds.yml
vendored
9
test/fixtures/recently_scanneds.yml
vendored
@@ -1,9 +0,0 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
product: MyString
|
||||
scanned_at: 2025-08-01 12:00:58
|
||||
|
||||
two:
|
||||
product: MyString
|
||||
scanned_at: 2025-08-01 12:00:58
|
||||
Reference in New Issue
Block a user