|
|
@ -176,7 +176,7 @@ RSpec.describe Form, type: :model do |
|
|
|
expect { |
|
|
|
expect { |
|
|
|
CaseLog.create!(armed_forces: "No", |
|
|
|
CaseLog.create!(armed_forces: "No", |
|
|
|
armed_forces_active: "Yes") |
|
|
|
armed_forces_active: "Yes") |
|
|
|
}.to raise_error |
|
|
|
}.to raise_error(ActiveRecord::RecordInvalid) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
# Crossover over tests here as injured must be answered as well for no error |
|
|
|
# Crossover over tests here as injured must be answered as well for no error |
|
|
@ -185,7 +185,7 @@ RSpec.describe Form, type: :model do |
|
|
|
CaseLog.create!(armed_forces: "Yes - a regular", |
|
|
|
CaseLog.create!(armed_forces: "Yes - a regular", |
|
|
|
armed_forces_active: "Yes", |
|
|
|
armed_forces_active: "Yes", |
|
|
|
armed_forces_injured: "Yes") |
|
|
|
armed_forces_injured: "Yes") |
|
|
|
}.not_to raise_error |
|
|
|
}.not_to raise_error |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|