Include the copyright notice in spec files #76

Merged
bustikiller merged 2 commits from copyright-specs into main 2024-10-28 22:48:04 +00:00
13 changed files with 25 additions and 1 deletions

View File

@ -15,7 +15,7 @@ jobs:
with:
CopyrightString: '# Copyright (C) 2024 Manuel Bustillo\n\n'
FileType: '.rb'
Path: 'app/, config/, db/'
Path: 'app/, config/, db/, spec/'
- uses: VinnyBabuManjaly/copyright-action@v1.0.0
with:
CopyrightString: '<%# Copyright (C) 2024 Manuel Bustillo %>\n\n'

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
require 'rails_helper'
module Tree

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
FactoryBot.define do
factory :group do
sequence(:name) { |i| "Group #{i}" }

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
FactoryBot.define do
factory :guest do
association :group

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
require 'rails_helper'
RSpec.describe Expense, type: :model do

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
require 'rails_helper'
RSpec.describe Group, type: :model do

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
require 'rails_helper'
RSpec.describe Guest, type: :model do

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
require 'rails_helper'
RSpec.describe Seat, type: :model do

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
require 'rails_helper'
RSpec.describe TablesArrangement, type: :model do

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
# This file is copied to spec/ when you run 'rails generate rspec:install'
require 'spec_helper'
ENV['RAILS_ENV'] ||= 'test'

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
require 'rails_helper'
module Tables
RSpec.describe DiscomfortCalculator do

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
require 'rails_helper'
module Tables

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
# This file was generated by the `rails generate rspec:install` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# The generated `.rspec` file contains `--require spec_helper` which will cause