Sha256: 50920fc8b12f7db69b4d236bb8dc5ce2a7afbb9e3208ac24d7e426f2e9a83a29
Contents?: true
Size: 461 Bytes
Versions: 37
Compression:
Stored size: 461 Bytes
Contents
require 'spec/expectations' $:.unshift(File.dirname(__FILE__) + '/../../') # This line is not needed in your own project require 'Calculator' # Calculator.dll Before do @calc = Demo::Calculator.new # A .NET class in Calculator.dll end Given "I have entered $n into the calculator" do |n| @calc.push n.to_i end When /I press add/ do @result = @calc.Add end Then /the result should be (.*) on the screen/ do |result| @result.should == result.to_i end
Version data entries
37 entries across 37 versions & 5 rubygems