Search code examples
javascriptrubyruby-on-rails-3tddweb-testing

How to automate Test driven development (TDD) syntax for websites coded in Ruby?


Having this syntax, how can i automate it and what IDE shall i use ?

When I fill in "Email" with ""
  And I press "Yes – this is my email address"
  Then I should see "Email must be completed"
  When I fill in "Email" with "emna@mail.com"
  And I press "Yes – this is my email address"
Then a new user should exist 

Shall i use javascript for that ?


Solution

  • The syntax shown is Gherkin. It can be automated with Cucumber or Spinach.

    https://github.com/cucumber/cucumber-ruby

    https://github.com/codegram/spinach