diff --git a/spec/models/form/sales/questions/person_age_known_spec.rb b/spec/models/form/sales/questions/person_age_known_spec.rb index 611a445cc..f9731fa34 100644 --- a/spec/models/form/sales/questions/person_age_known_spec.rb +++ b/spec/models/form/sales/questions/person_age_known_spec.rb @@ -8,10 +8,6 @@ RSpec.describe Form::Sales::Questions::PersonAgeKnown, type: :model do let(:page) { instance_double(Form::Page) } let(:person_index) { 2 } - before do - allow(page).to receive(:id).and_return("person_3_age") - end - it "has correct page" do expect(question.page).to eq(page) end @@ -39,10 +35,6 @@ RSpec.describe Form::Sales::Questions::PersonAgeKnown, type: :model do let(:question_id) { "age2_known" } let(:person_index) { 2 } - before do - allow(page).to receive(:id).and_return("person_2_age") - end - it "has the correct id" do expect(question.id).to eq("age2_known") end @@ -85,10 +77,6 @@ RSpec.describe Form::Sales::Questions::PersonAgeKnown, type: :model do let(:question_id) { "age3_known" } let(:person_index) { 3 } - before do - allow(page).to receive(:id).and_return("person_3_age") - end - it "has the correct id" do expect(question.id).to eq("age3_known") end @@ -131,10 +119,6 @@ RSpec.describe Form::Sales::Questions::PersonAgeKnown, type: :model do let(:question_id) { "age4_known" } let(:person_index) { 4 } - before do - allow(page).to receive(:id).and_return("person_4_age") - end - it "has the correct id" do expect(question.id).to eq("age4_known") end @@ -177,10 +161,6 @@ RSpec.describe Form::Sales::Questions::PersonAgeKnown, type: :model do let(:question_id) { "age5_known" } let(:person_index) { 5 } - before do - allow(page).to receive(:id).and_return("person_5_age") - end - it "has the correct id" do expect(question.id).to eq("age5_known") end diff --git a/spec/models/form/sales/questions/person_age_spec.rb b/spec/models/form/sales/questions/person_age_spec.rb index 3e6edaff7..30dcc8bcd 100644 --- a/spec/models/form/sales/questions/person_age_spec.rb +++ b/spec/models/form/sales/questions/person_age_spec.rb @@ -8,10 +8,6 @@ RSpec.describe Form::Sales::Questions::PersonAge, type: :model do let(:page) { instance_double(Form::Page) } let(:person_index) { 2 } - before do - allow(page).to receive(:id).and_return("person_1_age") - end - it "has correct page" do expect(question.page).to eq(page) end @@ -44,10 +40,6 @@ RSpec.describe Form::Sales::Questions::PersonAge, type: :model do let(:person_index) { 2 } let(:question_id) { "age2" } - before do - allow(page).to receive(:id).and_return("person_2_age") - end - it "has the correct id" do expect(question.id).to eq("age2") end @@ -76,10 +68,6 @@ RSpec.describe Form::Sales::Questions::PersonAge, type: :model do let(:person_index) { 3 } let(:question_id) { "age3" } - before do - allow(page).to receive(:id).and_return("person_3_age") - end - it "has the correct id" do expect(question.id).to eq("age3") end @@ -108,10 +96,6 @@ RSpec.describe Form::Sales::Questions::PersonAge, type: :model do let(:person_index) { 4 } let(:question_id) { "age4" } - before do - allow(page).to receive(:id).and_return("person_4_age") - end - it "has the correct id" do expect(question.id).to eq("age4") end @@ -140,10 +124,6 @@ RSpec.describe Form::Sales::Questions::PersonAge, type: :model do let(:person_index) { 5 } let(:question_id) { "age5" } - before do - allow(page).to receive(:id).and_return("person_5_age") - end - it "has the correct id" do expect(question.id).to eq("age5") end diff --git a/spec/models/form/sales/questions/person_gender_identity_spec.rb b/spec/models/form/sales/questions/person_gender_identity_spec.rb index 775bba7a7..3962142fb 100644 --- a/spec/models/form/sales/questions/person_gender_identity_spec.rb +++ b/spec/models/form/sales/questions/person_gender_identity_spec.rb @@ -8,10 +8,6 @@ RSpec.describe Form::Sales::Questions::PersonGenderIdentity, type: :model do let(:page) { instance_double(Form::Page) } let(:person_index) { 2 } - before do - allow(page).to receive(:id).and_return("person_1_gender_identity") - end - it "has correct page" do expect(question.page).to eq(page) end @@ -41,10 +37,6 @@ RSpec.describe Form::Sales::Questions::PersonGenderIdentity, type: :model do let(:question_id) { "sex2" } let(:person_index) { 2 } - before do - allow(page).to receive(:id).and_return("person_2_gender_identity") - end - it "has the correct id" do expect(question.id).to eq("sex2") end @@ -72,10 +64,6 @@ RSpec.describe Form::Sales::Questions::PersonGenderIdentity, type: :model do let(:question_id) { "sex3" } let(:person_index) { 3 } - before do - allow(page).to receive(:id).and_return("person_3_gender_identity") - end - it "has the correct id" do expect(question.id).to eq("sex3") end @@ -103,10 +91,6 @@ RSpec.describe Form::Sales::Questions::PersonGenderIdentity, type: :model do let(:question_id) { "sex4" } let(:person_index) { 4 } - before do - allow(page).to receive(:id).and_return("person_4_gender_identity") - end - it "has the correct id" do expect(question.id).to eq("sex4") end @@ -134,10 +118,6 @@ RSpec.describe Form::Sales::Questions::PersonGenderIdentity, type: :model do let(:question_id) { "sex5" } let(:person_index) { 5 } - before do - allow(page).to receive(:id).and_return("person_5_gender_identity") - end - it "has the correct id" do expect(question.id).to eq("sex5") end diff --git a/spec/models/form/sales/questions/person_known_spec.rb b/spec/models/form/sales/questions/person_known_spec.rb index a80f4b81e..90f299d5a 100644 --- a/spec/models/form/sales/questions/person_known_spec.rb +++ b/spec/models/form/sales/questions/person_known_spec.rb @@ -8,10 +8,6 @@ RSpec.describe Form::Sales::Questions::PersonKnown, type: :model do let(:page) { instance_double(Form::Page) } let(:person_index) { 2 } - before do - allow(page).to receive(:id).and_return("person_1_known") - end - it "has correct page" do expect(question.page).to eq(page) end @@ -39,10 +35,6 @@ RSpec.describe Form::Sales::Questions::PersonKnown, type: :model do let(:question_id) { "details_known_2" } let(:person_index) { 2 } - before do - allow(page).to receive(:id).and_return("person_2_known") - end - it "has the correct id" do expect(question.id).to eq("details_known_2") end @@ -74,10 +66,6 @@ RSpec.describe Form::Sales::Questions::PersonKnown, type: :model do let(:question_id) { "details_known_3" } let(:person_index) { 3 } - before do - allow(page).to receive(:id).and_return("person_3_known") - end - it "has the correct id" do expect(question.id).to eq("details_known_3") end @@ -109,10 +97,6 @@ RSpec.describe Form::Sales::Questions::PersonKnown, type: :model do let(:question_id) { "details_known_4" } let(:person_index) { 4 } - before do - allow(page).to receive(:id).and_return("person_4_known") - end - it "has the correct id" do expect(question.id).to eq("details_known_4") end @@ -144,10 +128,6 @@ RSpec.describe Form::Sales::Questions::PersonKnown, type: :model do let(:question_id) { "details_known_5" } let(:person_index) { 5 } - before do - allow(page).to receive(:id).and_return("person_5_known") - end - it "has the correct id" do expect(question.id).to eq("details_known_5") end diff --git a/spec/models/form/sales/questions/person_relationship_to_buyer1_spec.rb b/spec/models/form/sales/questions/person_relationship_to_buyer1_spec.rb index d0c338b4a..424d82498 100644 --- a/spec/models/form/sales/questions/person_relationship_to_buyer1_spec.rb +++ b/spec/models/form/sales/questions/person_relationship_to_buyer1_spec.rb @@ -8,10 +8,6 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model let(:page) { instance_double(Form::Page) } let(:person_index) { 2 } - before do - allow(page).to receive(:id).and_return("person_1_relationship_to_buyer_1") - end - it "has correct page" do expect(question.page).to eq(page) end @@ -41,10 +37,6 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model let(:question_id) { "relat2" } let(:person_index) { 2 } - before do - allow(page).to receive(:id).and_return("person_2_relationship_to_buyer_1") - end - it "has the correct id" do expect(question.id).to eq("relat2") end @@ -72,10 +64,6 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model let(:question_id) { "relat3" } let(:person_index) { 3 } - before do - allow(page).to receive(:id).and_return("person_3_relationship_to_buyer_1") - end - it "has the correct id" do expect(question.id).to eq("relat3") end @@ -103,10 +91,6 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model let(:question_id) { "relat4" } let(:person_index) { 4 } - before do - allow(page).to receive(:id).and_return("person_4_relationship_to_buyer_1") - end - it "has the correct id" do expect(question.id).to eq("relat4") end @@ -134,10 +118,6 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model let(:question_id) { "relat5" } let(:person_index) { 5 } - before do - allow(page).to receive(:id).and_return("person_5_relationship_to_buyer_1") - end - it "has the correct id" do expect(question.id).to eq("relat5") end diff --git a/spec/models/form/sales/questions/person_working_situation_spec.rb b/spec/models/form/sales/questions/person_working_situation_spec.rb index 8624f24fa..a56f6f1aa 100644 --- a/spec/models/form/sales/questions/person_working_situation_spec.rb +++ b/spec/models/form/sales/questions/person_working_situation_spec.rb @@ -8,10 +8,6 @@ RSpec.describe Form::Sales::Questions::PersonWorkingSituation, type: :model do let(:page) { instance_double(Form::Page) } let(:person_index) { 2 } - before do - allow(page).to receive(:id).and_return("person_2_working_situation") - end - it "has correct page" do expect(question.page).to eq(page) end @@ -48,10 +44,6 @@ RSpec.describe Form::Sales::Questions::PersonWorkingSituation, type: :model do let(:question_id) { "ecstat2" } let(:person_index) { 2 } - before do - allow(page).to receive(:id).and_return("person_2_working_situation") - end - it "has the correct id" do expect(question.id).to eq("ecstat2") end @@ -79,10 +71,6 @@ RSpec.describe Form::Sales::Questions::PersonWorkingSituation, type: :model do let(:question_id) { "ecstat3" } let(:person_index) { 3 } - before do - allow(page).to receive(:id).and_return("person_3_working_situation") - end - it "has the correct id" do expect(question.id).to eq("ecstat3") end @@ -110,10 +98,6 @@ RSpec.describe Form::Sales::Questions::PersonWorkingSituation, type: :model do let(:question_id) { "ecstat4" } let(:person_index) { 4 } - before do - allow(page).to receive(:id).and_return("person_4_working_situation") - end - it "has the correct id" do expect(question.id).to eq("ecstat4") end @@ -141,10 +125,6 @@ RSpec.describe Form::Sales::Questions::PersonWorkingSituation, type: :model do let(:question_id) { "ecstat5" } let(:person_index) { 5 } - before do - allow(page).to receive(:id).and_return("person_5_working_situation") - end - it "has the correct id" do expect(question.id).to eq("ecstat5") end