From de1f475fb4c5a6f982e34ff574fafc9d1b5d10fd Mon Sep 17 00:00:00 2001 From: Vasili Kachalko Date: Mon, 6 Nov 2023 12:34:24 +0100 Subject: [PATCH] fix specs initialization on CI --- spec/decorators/form_answer_decorator_spec.rb | 4 ++-- spec/lib/qae_form_builder_spec.rb | 4 ++-- spec/lib/sic_code_spec.rb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spec/decorators/form_answer_decorator_spec.rb b/spec/decorators/form_answer_decorator_spec.rb index f48807c43..27abe77b7 100644 --- a/spec/decorators/form_answer_decorator_spec.rb +++ b/spec/decorators/form_answer_decorator_spec.rb @@ -42,7 +42,7 @@ let(:year) { 1 } context "sic code present" do - let(:sic_code) { SICCode.first } + let(:sic_code) { SicCode.first } it "returns average growth for specific year" do expect(subject.average_growth_for(year)).to eq(sic_code.by_year(year)) end @@ -78,7 +78,7 @@ describe "#dashboard_status" do it "returns fill progress when application is not submitted" do - form_answer = create(:form_answer, state: "application_in_progress", document: { sic_code: SICCode.first.code }) + form_answer = create(:form_answer, state: "application_in_progress", document: { sic_code: SicCode.first.code }) expect(described_class.new(form_answer).dashboard_status).to eq("Nomination in progress...0%") end diff --git a/spec/lib/qae_form_builder_spec.rb b/spec/lib/qae_form_builder_spec.rb index c651512c4..af717926f 100644 --- a/spec/lib/qae_form_builder_spec.rb +++ b/spec/lib/qae_form_builder_spec.rb @@ -1,6 +1,6 @@ require 'rails_helper' -describe QAEFormBuilder do +describe QaeFormBuilder do subject do described_class.build 'Dummy Award' do step 'Step1', 'step1', &DummyForm.step1 @@ -57,4 +57,4 @@ def self.step1 end } end -end \ No newline at end of file +end diff --git a/spec/lib/sic_code_spec.rb b/spec/lib/sic_code_spec.rb index 6a0d77b84..bed53b799 100644 --- a/spec/lib/sic_code_spec.rb +++ b/spec/lib/sic_code_spec.rb @@ -1,6 +1,6 @@ require "rails_helper" -describe SICCode do +describe SicCode do describe "regex" do let(:regex) { described_class::REGEX } @@ -20,7 +20,7 @@ end describe "#by_year" do - subject { SICCode.first } + subject { SicCode.first } it "gets average growth by year" do expect(subject.by_year(1)).to eq(subject.year1)