Created
May 19, 2011 16:06
-
-
Save lonelydimple/981129 to your computer and use it in GitHub Desktop.
Pro rating tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Update coverage for a fidelity bond | |
Background: | |
And the fidelity bond templates | |
Scenario: Increase the penal sum and verify premium changed | |
Given an approved fidelity bond covering 5 individuals for 5000 dollars | |
Then the fidelity bond's premium should be 100 dollars | |
When the fidelity bond's penal sum is updated to 20000 half way through the bond's term | |
Then the fidelity bond's premium should be 126 dollars | |
And the fidelity bond's commission should be 31.5 | |
And the fidelity bond update's premium adjustment should be 26.0 dollars | |
And the fidelity bond update's commission adjustment should be 6.5 | |
Scenario: Increase the individuals covered and verify premium changed | |
Given an approved fidelity bond covering 5 individuals for 5000 dollars | |
When the fidelity bond's individuals covered is updated to 20 a quarter of the way through the bond's term | |
Then the fidelity bond's premium should be 170 dollars | |
Scenario: Decrease the penal sum and verify premium changed | |
Given an approved fidelity bond covering 5 individuals for 20000 dollars | |
When the fidelity bond's penal sum is updated to 5000 half way through the bond's term | |
Then the fidelity bond's premium should be 126 dollars | |
And the fidelity bond's commission should be 31.5 | |
Scenario: Increase the individuals covered which results in premium change of less than 10 dollars | |
Given an approved fidelity bond covering 5 individuals for 5000 dollars | |
When the fidelity bond's individuals covered is updated to 9 half way through the bond's term | |
And the fidelity bond's premium should be 100 dollars | |
And the fidelity bond's renewal premium should be 115 dollars | |
And there should be 0 fidelity bond update transactions | |
And there should be a minor update created with a renewal premium of 115 dollars | |
Scenario: No change | |
Given an approved fidelity bond covering 10 individuals for 5000 dollars | |
When I update the fidelity with no changes then I should get a validation error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment