Update: Capybara 0.4 is out. There have been some changes to how some of these methods work (especially XPath selectors). Full details here ...
å æ¥ãminami.rbã«åå ãã¦ãããããã§æãã¦ããã£ã sporkã§ãããããrailsã®ç°å¢ãèªã¿è¾¼ã㧠guard ã§ãã¡ã¤ã«ã®æ´æ°ãç£è¦ãã¦ãã¹ããã¡ã¤ã«ã®æ´æ°ãªã©ã® ã¿ã¤ãã³ã°ã§rspecãå®è¡ãããã¨ãã§ãããã¨ãæãã¦ããã£ãã å¿ããªããã¡ã«ãå 容ã®ã¡ã¢ãæ®ãã¦ããã¾ãã è¨å®èªä½ã¯ã¨ã¦ãç°¡åï¼ @koko_uãããããã¨ããããã¾ãã gemãã¤ã³ã¹ãã¼ã« ã¾ãã¯å¿ è¦ãªgemãèªã¿è¾¼ãããã®è¨å®ãGemfile追å ããã libnotifyã¨rb-notifyã¨ãã¯ubuntuä¸ã§éç¥ãåºãããã®è¨å® Gemfile ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ group :development, :test do gem 'guard' gem 'guard-rspec' gem 'guard-spork' gem 'spork', '>=0
ITã®ä»çµã¿ã¾ã¨ããµã¤ã ãã¼ã¿ãã¼ã¹ã®ä»çµã¿ã¨Rubyããã°ã©ã ã®æ´çç¨ãµã¤ãã§ã ããããã¼ã¸ãã¼ã¸ä¸è¦§ã¡ã³ãã¼ç·¨é Rails-migration æçµæ´æ°ï¼ celestianglobe 2010å¹´11æ03æ¥(æ°´) 19:38:02å±¥æ´ Tweet DBã¹ãã¼ãã®å®ç¾©ãRailsã§ç®¡çããéã®å·®å(å¤æ´)ãå®ç¾©ããããã®ä»çµã¿ããã¤ã°ã¬ã¼ã·ã§ã³ã åºæ¬ã³ãã³ã $ rakeãdb:migrate ãã¤ã°ã¬ã¼ã·ã§ã³ã®ä»çµã¿ ããããã¸ã§ã¯ãã§æ¬¡ã®ããã«DBæ´æ°ããã£ãã¨ããã å®éã¯è¤æ°ãã¼ãã«ãå ¥ãåæ ã£ã¦æ´æ°ãããããä»åã¯å¶ç¶productãã¼ãã«ã ãã«å¤æ´ããã£ãã¨ããã å®è¡é åºå®è¡å 容å®è¡ã³ãã³ãåè1productãã¼ãã«ã追å ããrails g migration CreateProductsé常ã¯modelãscaffoldã使ç¨ãã2productãã¼ãã«ã«"K
Extended by: DSL, Forwardable Defined in: lib/capybara.rb, lib/capybara/dsl.rb, lib/capybara/config.rb, lib/capybara/result.rb, lib/capybara/server.rb, lib/capybara/window.rb, lib/capybara/helpers.rb, lib/capybara/session.rb, lib/capybara/version.rb, lib/capybara/minitest.rb, lib/capybara/node/base.rb, lib/capybara/driver/node.rb, lib/capybara/node/simple.rb, lib/capybara/node/actions.rb, lib/capy
ã¨ãã¦scaffoldã¢ããªã±ã¼ã·ã§ã³ãèµ·åãã¦ã¿ã¾ããããèµ·åã§ãã¦ãããæ¬é¡ã§ãã ã¦ã¼ã¶ã¼çãæ°ãã«ä½æããéã®ãã©ã¼ã ã®åæå¤ http://(ãµã¼ãã¼ã®åå/IPã¢ãã¬ã¹):3000/usersã¸ãã©ã¦ã¶ã§ã¢ã¯ã»ã¹ãã¦ãæ°è¦ã¦ã¼ã¶ã¼ç»é²ç»é¢ãéãã¦ã¿ã¾ãããã èªçæ¥ã®æ¬ã«ç¾å¨ã®æ¥ä»ã表示ããã¦ãã¾ããããã¯ã¢ãã«ã®èªçæ¥ã®åæå¤ãnilã®ããããã«ãã¼ãæ¬æ¥ã®æ¥ä»ãããã©ã«ãã¨ãã¦ããããã§ãã èªçæ¥ãæ¬æ¥ã®äººãwebãã©ã¼ã ã«ç»é²ããã¯ããç¡ããã¦ã¼ã¶ã¼è¦ç¹ã«ç«ã¦ã°webãµã¼ãã¹ã®ä¸»ãªå©ç¨è ã®å¹³åå¹´é½¢ãé¸ã³æãããã«ãå¹´ãã¯åæå¤ãå ¥ãã¦ããããã¨ããã§ãã ãæ¬æ¥ã®æ¥ä»ããã«ãã¼ãå ¥ãã¦ããã®ã§ããã°ããã«ãã¼ãç·¨éããããã¨æã£ãæ¹ã絶対ã«ééããã¨ã¯è¨ãåãã¾ãããããã¾ãè¯ãæ¹æ³ã¨ã¯è¨ãã¾ããã å ã«æ¸ããã¨ãããUserã¨ããã¢ãã«èªèº«ããã¼ã¿ã«è²¬ä»»ãæã¤ã¹ãã§ã
ä¼èª¬ã®ã¦ã§ããã¶ã¤ãã¼ãæ¢ã㦠西æ¦2012å¹´ æ ªå¼ä¼ç¤¾LIGã¯æ·±å»ãªãã¶ã¤ãã¼ä¸è¶³ã«è¦èããã¦ããã ãããªä¸ãéé ·ãªå´åãå¼·ãããããã¶ã¤ãã¼éãéçãè¿ãããã¨ãã¦ããã ããã15æãããã¼ãä»æ¥ãããåããã ãããããåéããã£ããåããã俺ã¯ããä¸ãããããªã ãã´ãã£ï¼ï¼ã ããªããªã«ãããï¼ã ããã£â¦ãâ¦ã ãâ¦â¦â¦â¦â¦â¦â¦â¦ã ï½ï½ï½ï½ï½ï½ï½ï½ ãâ¦â¦â¦â¦â¦â¦â¦â¦ã ããã£ï¼ã ããµãµãµã社é·â¦ããããç®ãè¦ããã¿ãããã ãï¼ï¼ããªãã®ã¤ããã ï¼ãã£ãã¨ããããåºãï¼ã ã社é·ã俺éã®è¨ãäºããèãã¦ããããããã«ã§ãåºãã¾ãããã ããåéã®è¨ãäºã ã¨â¦ä¸ä½ä½ãæã¿ã ï¼ã ãæ°ããã¦ã§ããã¶ã¤ãã¼ãéããã¨ããããæã¿ãã ãã¦ã§ããã¶ã¤ãã¼ãéãã ã¨ï¼ï¼â¦ã ããã£ã¦ãä½æ ãããªäºãâ¦ï¼ï¼ã ãâ¦â¦â¦â¦â¦â¦ã ãã¯ãºã©ããï¼æ©ãããããåºãï¼ã ãé»ã£ã¦èãã¦ãã
Rails3, OmniAuth, RSpec, Capybaraã®çµã¿åããã§ã¨ã³ããã¼ã¨ã³ãã®ãã¹ããæ¸ãããã«ã¬ã³ãã¦ã¼ã¶ã®æ å ±ã«ã¢ã¯ã»ã¹ããæ¹æ³ãåããã試è¡é¯èª¤ãããã以ä¸ã®æ¹æ³ã§è§£æ±ºãä»ã«è¯ãæ¹æ³ãªãããªï¼ describe "ãã¹ã対象" do before do OmniAuth.config.test_mode = true @current_user = User.create( :uid => 12234, :provider => "twitter", :screen_name => "NickName", :name => "FirstName LastName" ) OmniAuth.config.mock_auth[:twitter] = { "uid" => @current_user.uid, "provider" => @current_user.pro
Rails ã®ãã¹ããæ¸ãã¦ãã¦ããã£ã¯ã¹ãã£ã¯ã®ã¡ã®ã¡ã¡ã³ããã³ã¹ã«è¦å´ãããã ãã FactoryGirl ã使ã£ã¦ã¿ãã FactoryGirl ã«ã¤ãã¦ã¯ããã詳ãã http://www.func09.com/wordpress/archives/532 ä¸ã®ãã¼ã¸ã®ä¾ã«ããã¨ãããä¸éãã¼ãã«ã使ããããªã±ã¼ã¹ã§ãã¹ããã¼ã¿ãå®ç¾©ããã®ã«ä¾¿å©ããã (å ¬å¼ãã¼ã¸?ã§ããã®ããã«å®£ä¼ãã¦ãã) ã®ã ããä¸éãã¼ãã«ãä¸è¦ãª has_many/belongs_to ã®é¢ä¿ãå®ç¾©ããã¨ãã«ã association ã親åã©ã¡ãã«æ¸ããã§ããã£ã¦ãã¾ã£ãã ããåãããã³ã¼ãä¾ããªãã¦æ縮ã ãã©ã FactoryGirl 㧠has_many/belongs_to 㪠association ãå®ç¾©ããã¨ãã¯ãå¿ ãåã®ã»ãã«è¦ªã® Factory ãæ¸ããªãã¨ãããªãã£ã½ãããã®ã¹ã¬ã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}