chore: linting stuff

This commit is contained in:
kbe
2025-08-25 00:43:03 +02:00
parent 03717dc95b
commit 632055c44d
14 changed files with 107 additions and 43 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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') %>

View File

@@ -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