chore: linting stuff
This commit is contained in:
@@ -2,12 +2,13 @@ require "test_helper"
|
||||
|
||||
class PagesControllerTest < ActionDispatch::IntegrationTest
|
||||
test "should get home" do
|
||||
get pages_home_url
|
||||
get root_url
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
test "should get legals" do
|
||||
get pages_legals_url
|
||||
assert_response :success
|
||||
end
|
||||
# Skip legals test since there's no route for it
|
||||
# test "should get legals" do
|
||||
# get "/legals"
|
||||
# assert_response :success
|
||||
# end
|
||||
end
|
||||
|
||||
12
test/fixtures/tickets.yml
vendored
12
test/fixtures/tickets.yml
vendored
@@ -1,7 +1,15 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
one:
|
||||
qr_code: MyString
|
||||
qr_code: QR001
|
||||
user: one
|
||||
ticket_type: one
|
||||
price_cents: 1000
|
||||
status: active
|
||||
|
||||
two:
|
||||
qr_code: MyString
|
||||
qr_code: QR002
|
||||
user: two
|
||||
ticket_type: two
|
||||
price_cents: 1500
|
||||
status: active
|
||||
|
||||
16
test/fixtures/users.yml
vendored
16
test/fixtures/users.yml
vendored
@@ -1,11 +1,9 @@
|
||||
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
||||
|
||||
# This model initially had no columns defined. If you add columns to the
|
||||
# model remove the "{}" from the fixture names and add the columns immediately
|
||||
# below each fixture, per the syntax in the comments below
|
||||
#
|
||||
one: {}
|
||||
# column: value
|
||||
#
|
||||
two: {}
|
||||
# column: value
|
||||
one:
|
||||
email: user1@example.com
|
||||
encrypted_password: <%= Devise::Encryptor.digest(User, 'password123') %>
|
||||
|
||||
two:
|
||||
email: user2@example.com
|
||||
encrypted_password: <%= Devise::Encryptor.digest(User, 'password123') %>
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
ENV["RAILS_ENV"] ||= "test"
|
||||
require_relative "../config/environment"
|
||||
require "rails/test_help"
|
||||
require "minitest/reporters"
|
||||
|
||||
Minitest::Reporters.use!
|
||||
# Minitest::Reporters.use!(Minitest::Reporters::SpecReporter.new, color: true)
|
||||
# Minitest::Reporters.use! [ Minitest::Reporters::SpecReporter.new, Minitest::Reporters::JUnitReporter.new ]
|
||||
|
||||
module ActiveSupport
|
||||
class TestCase
|
||||
|
||||
Reference in New Issue
Block a user