|
|
@ -112,17 +112,17 @@ RSpec.describe "Test Features" do |
|
|
|
}.to raise_error(ActiveRecord::RecordInvalid) |
|
|
|
}.to raise_error(ActiveRecord::RecordInvalid) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
# it "Can answer yes if valid tenants" do |
|
|
|
it "Can answer yes if valid tenants" do |
|
|
|
# expect { |
|
|
|
expect { |
|
|
|
# CaseLog.create!(pregnancy: "Yes", tenant_gender: "Female", tenant_age: 20) |
|
|
|
CaseLog.create!(pregnancy: "Yes", tenant_gender: "Female", tenant_age: 20) |
|
|
|
# }.to raise_error(ActiveRecord::RecordInvalid) |
|
|
|
}.not_to raise_error(ActiveRecord::RecordInvalid) |
|
|
|
# end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
# it "Can answer yes if valid second tenant" do |
|
|
|
it "Can answer yes if valid second tenant" do |
|
|
|
# expect { |
|
|
|
expect { |
|
|
|
# CaseLog.create!(pregnancy: "Yes", tenant_gender: "Male", tenant_age: 99, person_2_gender: "Female", person_2_age: 20) |
|
|
|
CaseLog.create!(pregnancy: "Yes", tenant_gender: "Male", tenant_age: 99, person_2_gender: "Female", person_2_age: 20) |
|
|
|
# }.to raise_error(ActiveRecord::RecordInvalid) |
|
|
|
}.not_to raise_error(ActiveRecord::RecordInvalid) |
|
|
|
# end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
it "can be accessed by url" do |
|
|
|
it "can be accessed by url" do |
|
|
|