Created by Fabien Garcia
It's a hight level framework testing
# language: en
Feature: Addition
In order to avoid silly mistakes
As a math idiot
I want to be told the sum of two numbers
Scenario Outline: Add two numbers
Given I have entered <input_1> into the calculator
And I have entered <input_2> into the calculator
When I press <button>
Then the result should be <output> on the screen
Examples:
| input_1 | input_2 | button | output |
| 20 | 30 | add | 50 |
| 2 | 5 | add | 7 |
| 0 | 40 | add | 40 |
Framework for testing developer friendly and easy to read.
describe "Search /blog" do
it "should be able to search into the blog database" do
post = FactoryGirl.create(:post)
post2 = FactoryGirl.create(:post, title: 'other staff' )
visit home_path
fill_in 'search', :with => 'article top'
click_on 'Search'
page.should have_content("article top")
end
end
end
We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true
Robert Wilensky