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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
require 'rails_helper' require 'rails_helper'
RSpec.describe TablesArrangement, type: :model do 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' # This file is copied to spec/ when you run 'rails generate rspec:install'
require 'spec_helper' require 'spec_helper'
ENV['RAILS_ENV'] ||= 'test' ENV['RAILS_ENV'] ||= 'test'

View File

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

View File

@ -1,3 +1,5 @@
# Copyright (C) 2024 Manuel Bustillo
require 'rails_helper' require 'rails_helper'
module Tables 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 # 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`. # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# The generated `.rspec` file contains `--require spec_helper` which will cause # The generated `.rspec` file contains `--require spec_helper` which will cause