Sha256: 70c9400c337528d787384b3b05fb7ed6ea66df0244a9ebbdb8f5c1404ace1652
Contents?: true
Size: 494 Bytes
Versions: 123
Compression:
Stored size: 494 Bytes
Contents
# encoding: utf-8 begin require 'rspec/expectations'; rescue LoadError; require 'spec/expectations'; end require 'cucumber/formatter/unicode' $:.unshift(File.dirname(__FILE__) + '/../../lib') require 'calculator' Before do @calc = Calculator.new end After do end Given /aku sudah masukkan (\d+) ke kalkulator/ do |n| @calc.push n.to_i end When /aku tekan (\w+)/ do |op| @result = @calc.send op end Then /hasilnya harus (.*) di layar/ do |result| @result.should == result.to_f end
Version data entries
123 entries across 119 versions & 13 rubygems