Commit 5fbfb33b authored by Jiri Strojil's avatar Jiri Strojil
Browse files

Fixed tests

parent de504255
Pipeline #29228 failed with stage
in 43 minutes and 15 seconds
......@@ -5,7 +5,6 @@ FactoryBot.define do
salutation { ['mr', 'mrs'].sample }
acceptance :accepted
group_offer_categories { |category| [category.association(:group_offer_category)] }
waive { true }
iban { generate :iban }
bank { 'Bank' }
association :registrar, factory: :user
......
......@@ -5,7 +5,7 @@ class TerminateAssignmentsTest < ApplicationSystemTestCase
@superadmin = create :user
@department_manager = create :department_manager
@client = create :client, user: @department_manager
@volunteer = create :volunteer
@volunteer = create :volunteer, waive: false
@assignment = create :assignment, volunteer: @volunteer, client: @client,
period_start: 10.weeks.ago, period_end: 2.days.ago, creator: @department_manager
@hour = create :hour, volunteer: @volunteer, hourable: @assignment
......
......@@ -5,7 +5,7 @@ class VolunteersTest < ApplicationSystemTestCase
@user = create :user, email: 'superadmin@example.com'
login_as @user
Volunteer.acceptance_collection.each do |acceptance|
create :volunteer, acceptance: acceptance
create :volunteer, acceptance: acceptance, waive: false
end
ActionMailer::Base.deliveries.clear
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment