Agile Web Development with Rails and Cucumber

1,900 views

Published on

at NagoyaRubyKaigi01

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,900
On SlideShare
0
From Embeds
0
Number of Embeds
303
Actions
Shares
0
Downloads
19
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

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. ✓ ✓

×