Skip to content

Commit

Permalink
Flatten statutory sick pay tests
Browse files Browse the repository at this point in the history
Removing VERY nested context introduces some duplication in test
setup, but makes the tests easier to read, understand and change.
  • Loading branch information
tadast authored and BenJanecke committed May 13, 2015
1 parent 27d7b96 commit 1b12656
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 299 deletions.
2 changes: 1 addition & 1 deletion lib/smart_answer_flows/calculate-statutory-sick-pay.rb
Expand Up @@ -36,7 +36,7 @@
# Question 3
multiple_choice :employee_work_different_days? do
option yes: :not_regular_schedule # Answer 4
option no: :first_sick_day? # Question 4
option no: :first_sick_day? # Question 4
end

# Question 4
Expand Down

0 comments on commit 1b12656

Please sign in to comment.