You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

calculator_steps.rb 527 B

2 years ago
12345678910111213141516171819202122232425
  1. Дадено('е че съм въвел {int}') do |int|
  2. calc.push int
  3. end
  4. Дадено('съм въвел {int}') do |int|
  5. calc.push int
  6. end
  7. Дадено('е че съм събрал {int} и {int}') do |int1, int2|
  8. calc.push int1
  9. calc.push int2
  10. calc.send '+'
  11. end
  12. Когато('въведа {int}') do |int|
  13. calc.push int
  14. end
  15. Когато('натисна {string}') do |op|
  16. calc.send op
  17. end
  18. То('резултата трябва да е равен на {int}') do |int|
  19. expect(calc.result).to eq(int)
  20. end

No Description

Contributors (1)