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 343 B

2 years ago
123456789101112131415161718
  1. $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/../../lib")
  2. require 'calculator'
  3. Before do
  4. @calc = Calculator.new
  5. end
  6. Pokud('Zadám číslo {int} do kalkulačky') do |int|
  7. @calc.push int
  8. end
  9. Když('stisknu {word}') do |op|
  10. @result = @calc.send op
  11. end
  12. Pak('výsledek by měl být {float}') do |float|
  13. expect(@result).to eq(float)
  14. end

No Description

Contributors (1)