jpmobileã§ä½œæˆã•ã‚ŒãŸRailsプãƒã‚¸ã‚§ã‚¯ãƒˆã‚’テストã™ã‚‹å¿…è¦ãŒã‚ã£ãŸã®ã§èª¿ã¹ã¦ã¿ã¾ã—ãŸã€‚ ã¡ã‚‡ã£ã¨ã‚°ã‚°ã‚‹ã¨æ¬¡ã®ã‚µã‚¤ãƒˆãŒå‡ºã¦ãã¾ã™ã€‚ Ruby 1.9 + Rails3 + jpmobileã§æ§‹ç¯‰ã—ãŸã‚µã‚¤ãƒˆã‚’cucumberã§ãƒ†ã‚¹ãƒˆã™ã‚‹ãŸã‚ã®Tips Capybara::Driver::RackTestã«ç´°å·¥ã‚’ã—ã¦UserAgentã‚’å½è£…ã™ã‚‹æ–¹æ³•ã§ã™ã€‚ ãŸã ã—ã€æ‰‹å…ƒã«ã‚¤ãƒ³ã‚¹ãƒˆãƒ¼ãƒ«ã•ã‚Œã¦ã„ã‚‹Capybara1.1.2ã¯Capybara::Driver::RackTestã¯ç„¡ããªã£ã¦ãŠã‚Šä»£ã‚ã‚Šã«Capybara::RackTest::DriverãŒå®Ÿè£…ã•ã‚Œã¦ã„ã¦ã€ä¸Šè¨˜ã®å½è£…ã‚’è¡Œã†ã“ã¨ãŒã§ãã¾ã›ã‚“。 ä»–ã®æ‰‹ã‚’探ã—ã¦ã¿ãŸã¨ã“ã‚次ã®è¨˜äº‹ãŒè¦‹ã¤ã‹ã‚Šã¾ã—ãŸã€‚ Creating a custom Capybara driver ã“ã®æ–¹æ³•ã¯æ–°ã—ã„Capybaraã®Driverã‚’è¨å®šã—ã¦ã—ã¾ã†æ–¹æ³•ã§ã™ã€‚
{{#tags}}- {{label}}
{{/tags}}