Skip to content

Commit

Permalink
fix specs initialization on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamfall committed Nov 6, 2023
1 parent 0ce5dc3 commit de1f475
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions spec/decorators/form_answer_decorator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions spec/lib/qae_form_builder_spec.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -57,4 +57,4 @@ def self.step1
end
}
end
end
end
4 changes: 2 additions & 2 deletions spec/lib/sic_code_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require "rails_helper"

describe SICCode do
describe SicCode do
describe "regex" do
let(:regex) { described_class::REGEX }

Expand All @@ -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)
Expand Down

0 comments on commit de1f475

Please sign in to comment.