Expand All
Collapse All
# decrease by one current value
# initial number is 0 which is not shown
1 |
0 |
-1 |
0 |
# and the first result of ADD operation in footer
# the result should be '1'
header | Islam_Hamdy |
footer | Sarah Osama |
header | Bravo ya islam |
footer | new number =1 |
# the scenario FAILS because of the header not changing,features/header_footer.feature:20
# when SUB button is touched
# I assume this can be big, but indeed the changing header,
# as well as footer requires clarification regarding which
# behaviour is correct
# and the first result of SUB operation in footer
# the result should be '-1'
header | Islam_Hamdy |
footer | Sarah Osama |
header | Bravo ya islam |
footer | new number =-1 |
./features/step_definitions/calculator_steps.rb:32:in `/^I see the following elements$/' features/header_footer.feature:28:in `Then I see the following elements' ./features/step_definitions/calculator_steps.rb:32:in `/^I see the following elements$/' features/header_footer.feature:28:in `Then I see the following elements'
30 }
31
32 assert_empty(
33 not_matching_elements,
34 'There are mismatched elements on Calculator view'
title | Calculator |
header | Islam_Hamdy |
adding_button | ADD |
substruction_button | SUB |
footer | Sarah Osama |
# all the scenarios in this feature FAIL because the counter gets
# underflows and overflows for Interger minimum and maximum values
# when the count reaches small enough value
# Calculator should continue producing less by one numbers
./features/step_definitions/calculator_steps.rb:72:in `/^the result is (\d+) (less|more) than the pre\-set up value$/' features/underflow_overflow_handling.feature:14:in `Then the result is 1 less than the pre-set up value' ./features/step_definitions/calculator_steps.rb:72:in `/^the result is (\d+) (less|more) than the pre\-set up value$/' features/underflow_overflow_handling.feature:14:in `Then the result is 1 less than the pre-set up value'
70 number_after_operation) if direction.eql?('more')
71
72 assert_equal(
73 number_before_operation - diff.to_integer(nil),
74 number_after_operation) if direction.eql?('less')
# when the count reaches big enough value
# Calculator should continue producing bigger by one numbers
./features/step_definitions/calculator_steps.rb:68:in `/^the result is (\d+) (less|more) than the pre\-set up value$/' features/underflow_overflow_handling.feature:25:in `Then the result is 1 more than the pre-set up value' ./features/step_definitions/calculator_steps.rb:68:in `/^the result is (\d+) (less|more) than the pre\-set up value$/' features/underflow_overflow_handling.feature:25:in `Then the result is 1 more than the pre-set up value'
66 number_after_operation = @results.first.to_integer nil
67
68 assert_equal(
69 number_before_operation + diff.to_integer(nil),
70 number_after_operation) if direction.eql?('more')