|
|
|
@ -8,10 +8,6 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model |
|
|
|
let(:page) { instance_double(Form::Page) } |
|
|
|
let(:page) { instance_double(Form::Page) } |
|
|
|
let(:person_index) { 2 } |
|
|
|
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 |
|
|
|
it "has correct page" do |
|
|
|
expect(question.page).to eq(page) |
|
|
|
expect(question.page).to eq(page) |
|
|
|
end |
|
|
|
end |
|
|
|
@ -41,10 +37,6 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model |
|
|
|
let(:question_id) { "relat2" } |
|
|
|
let(:question_id) { "relat2" } |
|
|
|
let(:person_index) { 2 } |
|
|
|
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 |
|
|
|
it "has the correct id" do |
|
|
|
expect(question.id).to eq("relat2") |
|
|
|
expect(question.id).to eq("relat2") |
|
|
|
end |
|
|
|
end |
|
|
|
@ -72,10 +64,6 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model |
|
|
|
let(:question_id) { "relat3" } |
|
|
|
let(:question_id) { "relat3" } |
|
|
|
let(:person_index) { 3 } |
|
|
|
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 |
|
|
|
it "has the correct id" do |
|
|
|
expect(question.id).to eq("relat3") |
|
|
|
expect(question.id).to eq("relat3") |
|
|
|
end |
|
|
|
end |
|
|
|
@ -103,10 +91,6 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model |
|
|
|
let(:question_id) { "relat4" } |
|
|
|
let(:question_id) { "relat4" } |
|
|
|
let(:person_index) { 4 } |
|
|
|
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 |
|
|
|
it "has the correct id" do |
|
|
|
expect(question.id).to eq("relat4") |
|
|
|
expect(question.id).to eq("relat4") |
|
|
|
end |
|
|
|
end |
|
|
|
@ -134,10 +118,6 @@ RSpec.describe Form::Sales::Questions::PersonRelationshipToBuyer1, type: :model |
|
|
|
let(:question_id) { "relat5" } |
|
|
|
let(:question_id) { "relat5" } |
|
|
|
let(:person_index) { 5 } |
|
|
|
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 |
|
|
|
it "has the correct id" do |
|
|
|
expect(question.id).to eq("relat5") |
|
|
|
expect(question.id).to eq("relat5") |
|
|
|
end |
|
|
|
end |
|
|
|
|