Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Agile Web Development with Rails and Cucumber

1,989 views

Published on

at NagoyaRubyKaigi01

Published in: Technology
  • Be the first to comment

Agile Web Development with Rails and Cucumber

  1. 1. Agile Web Development with Rails and Cucumber
  2. 2. ✓ ✓ ✓
  3. 3. http://ruby.agile.esm.co.jp/
  4. 4. ✓ ✓ ✓
  5. 5. http://cukes.info/
  6. 6. : : "New user" "Name" "user1" "Create" "user1"
  7. 7. ✓ ✓ ✓
  8. 8. ✓ "New user" ✓ "Name" "user1" ✓ "user1"
  9. 9. ✓ : "New user" "Name" "user1" "Create" "user1"
  10. 10. ✓ : : … : …
  11. 11. ✓ ✓ ✓
  12. 12. Given /^"([^"]*)" $/ do |page_name|   visit path_to(page_name) end When /^"([^"]*)" "([^"]*)" $/ do |field, value|   fill_in(field, :with => value) end Then /^"([^"]*)" $/ do |regexp|   regexp = Regexp.new(regexp)   response.should_not contain(regexp) end
  13. 13. }
  14. 14. "New user" Given /^"([^"]*)" $/ do |page_name|   visit path_to(page_name) end
  15. 15. ✓ ✓ ✓
  16. 16. ✓ ✓ ✓ ✓
  17. 17. : : "New user" "Name" "user1" "Create" "user1"
  18. 18. ✓ ✓ ✓
  19. 19. : : "New user" "Name" "user1" "Create" "user1" ✓
  20. 20. ✓ ✓
  21. 21. ✓ ✓
  22. 22. "When you get down to nitty gritty details, drop down one abstraction level and use RSpec, or any Ruby testing framework, to write some specs/tests for your classes."
  23. 23. ✓ ✓
  24. 24. ✓ ✓ ✓
  25. 25. ✓ ✓
  26. 26. :      "articles"     "/artiles/new" "body=hoge" POST     "Article.count" 1
  27. 27. ✓ ✓
  28. 28. :     :      #       " "       " " "hoge"     ...       " "       " " " "     ...    :      # ...
  29. 29. :     :       " "       " " "hoge"     ...    :        " "       " " " "     ... Background
  30. 30.
  31. 31. Given /^ "([^"]*)" $/ do |name|   Given %(" " )   When %(" " "#{name}" )   ... end Calling Steps from Step Definitions
  32. 32. :     :         "hoge"       " "       " " " "     ...
  33. 33. ✓ ✓
  34. 34. ✓ ✓

×