|
|
|
@ -186,7 +186,6 @@ RSpec.describe Validations::Sales::FinancialValidations do |
|
|
|
expect(record.errors["stairbought"]).to eq(["The minimum increase in equity while staircasing is 10%"]) |
|
|
|
expect(record.errors["stairbought"]).to eq(["The minimum increase in equity while staircasing is 10%"]) |
|
|
|
record.errors.clear |
|
|
|
record.errors.clear |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
record.stairbought = 0 |
|
|
|
record.stairbought = 0 |
|
|
|
|
|
|
|
|
|
|
|
record.type = 30 |
|
|
|
record.type = 30 |
|
|
|
@ -218,7 +217,6 @@ RSpec.describe Validations::Sales::FinancialValidations do |
|
|
|
expect(record.errors["stairbought"]).to be_empty |
|
|
|
expect(record.errors["stairbought"]).to be_empty |
|
|
|
record.errors.clear |
|
|
|
record.errors.clear |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
record.stairbought = 1 |
|
|
|
record.stairbought = 1 |
|
|
|
|
|
|
|
|
|
|
|
record.type = 30 |
|
|
|
record.type = 30 |
|
|
|
|