From 2fe8501c6556c6cd2665c87fd33fa8e30ec21dbe Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 2 Jun 2023 12:51:28 +0200 Subject: [PATCH] Fix failing specs --- plugin.rb | 2 +- spec/components/custom_wizard/log_spec.rb | 6 +++--- spec/components/custom_wizard/mapper_spec.rb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/plugin.rb b/plugin.rb index ba3f8bf1..955063f4 100644 --- a/plugin.rb +++ b/plugin.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # name: discourse-custom-wizard # about: Forms for Discourse. Better onboarding, structured posting, data enrichment, automated actions and much more. -# version: 2.4.2 +# version: 2.4.3 # authors: Angus McLeod, Faizaan Gagan, Robert Barrow, Keegan George, Kaitlin Maddever # url: https://github.com/paviliondev/discourse-custom-wizard # contact_emails: development@pavilion.tech diff --git a/spec/components/custom_wizard/log_spec.rb b/spec/components/custom_wizard/log_spec.rb index e4f5550f..c5cafba9 100644 --- a/spec/components/custom_wizard/log_spec.rb +++ b/spec/components/custom_wizard/log_spec.rb @@ -2,9 +2,9 @@ describe CustomWizard::Log do before do - CustomWizard::Log.create('first-test-wizard', 'perform_first_action', 'first_test_user', 'First log message') - CustomWizard::Log.create('second-test-wizard', 'perform_second_action', 'second_test_user', 'Second log message') - CustomWizard::Log.create('third-test-wizard', 'perform_third_action', 'third_test_user', 'Third log message') + CustomWizard::Log.create('first-test-wizard', 'perform_first_action', 'first_test_user', 'First log message', 5.minutes.ago) + CustomWizard::Log.create('second-test-wizard', 'perform_second_action', 'second_test_user', 'Second log message', 3.minutes.ago) + CustomWizard::Log.create('third-test-wizard', 'perform_third_action', 'third_test_user', 'Third log message', 1.minutes.ago) end it "creates logs" do diff --git a/spec/components/custom_wizard/mapper_spec.rb b/spec/components/custom_wizard/mapper_spec.rb index 3e0e6ce6..2e18cabd 100644 --- a/spec/components/custom_wizard/mapper_spec.rb +++ b/spec/components/custom_wizard/mapper_spec.rb @@ -281,13 +281,13 @@ describe CustomWizard::Mapper do it "avatar with valid size" do avatar_inputs = inputs['interpolate_avatar'].dup - avatar_inputs[0]["output"] = "Avatar: ![avatar](u{avatar.120})" + avatar_inputs[0]["output"] = "Avatar: ![avatar](u{avatar.144})" expect(CustomWizard::Mapper.new( inputs: avatar_inputs, data: data, user: user1 - ).perform).to eq("Avatar: ![avatar](#{user1.avatar_template_url.gsub("{size}", "120")})") + ).perform).to eq("Avatar: ![avatar](#{user1.avatar_template_url.gsub("{size}", "144")})") end end