Created
May 29, 2009 20:20
-
-
Save maiha/120187 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| シナリオ: 営業がページを見る | |
| 前提 未来の確定案件1が存在し | |
| もし "入稿情報1"を開く | |
| ならば "商品詳細1"へのリンクがある | |
| かつ "クリエイティブ"が非表示 | |
| かつ "入稿情報"が非表示 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| シナリオ: 営業がページを見る | |
| 前提 未来の確定案件1が存在し | |
| もし "入稿情報1"を開く | |
| なら "商品詳細1"へのリンクがある | |
| かつ "クリエイティブ"が非表示 | |
| かつ "入稿情報"が非表示 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| シナリオ: 営業がページを見る | |
| 前提 未来の確定案件1が存在し | |
| 実行 "入稿情報1"を開く | |
| 結果 "商品詳細1"へのリンクがある | |
| で "クリエイティブ"が非表示 | |
| で "入稿情報"が非表示 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # http://github.com/maiha/cuke-utils/ | |
| module Cucumber | |
| def self.update_language(lang, values) | |
| Cucumber::LANGUAGES[lang].merge!(values) | |
| Cucumber.instance_eval("@lang = nil") # force to reload parser | |
| Cucumber.load_language(lang) | |
| end | |
| end | |
| # Update language keywords here | |
| Cucumber.update_language "ja", "then" => "ならば|なら" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ひらがなが並ぶと読みづらいと気づいた | |
| # そもそも「When」が「もし」なのも自然でない | |
| # Update language keywords here | |
| keywords = { | |
| "when" => "もし|実行", | |
| "then" => "ならば|なら|結果", | |
| "and" => "かつ|で", | |
| } | |
| Cucumber.update_language "ja", keywords |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment