Embed presentation
Downloaded 137 times













![CODE UNTIL YOU PASS
class Calculator
def push(n)
@args ||= []
@args << n
end
def add
result = 0
@args.each do |n|
result += n
end
result
end
end](https://image.slidesharecdn.com/presentation-090718165957-phpapp01/75/Ruby-Testing-Cucumber-and-RSpec-14-2048.jpg)




The document discusses testing in Ruby using Cucumber and RSpec, focusing on behavior-driven development (BDD) tools. It explains the process of writing features, defining steps, and creating specs, illustrated with a calculator example. Additionally, it provides links to resources for further information on Cucumber and RSpec.













![CODE UNTIL YOU PASS
class Calculator
def push(n)
@args ||= []
@args << n
end
def add
result = 0
@args.each do |n|
result += n
end
result
end
end](https://image.slidesharecdn.com/presentation-090718165957-phpapp01/75/Ruby-Testing-Cucumber-and-RSpec-14-2048.jpg)


