From dd3af7852fc584b7ed67fa5304f7ed54e584176d Mon Sep 17 00:00:00 2001 From: tomykaira Date: Sat, 28 May 2011 22:36:37 +0900 Subject: [PATCH] cucumber: Direct Link to DM for passing test with JS --- features/support/paths.rb | 2 ++ features/twitter_post.feature | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/features/support/paths.rb b/features/support/paths.rb index 25afec3..13039db 100644 --- a/features/support/paths.rb +++ b/features/support/paths.rb @@ -15,6 +15,8 @@ def path_to(page_name) new_twitter_login_path when /ユーザ/ user_path(User.find_by_nickname(TEST_OAINFO['user_info']['nickname'])) + when /DM/ + message_tweet_path(2) else begin page_name =~ /the (.*) page/ diff --git a/features/twitter_post.feature b/features/twitter_post.feature index 0cf622c..159c060 100644 --- a/features/twitter_post.feature +++ b/features/twitter_post.feature @@ -18,8 +18,7 @@ かつ "twitter"に投稿されていること シナリオ: DM で返信 前提 twitter ログイン - もし "ユーザ"ページを表示している - もし "DM"リンクをクリックする + もし "DM"ページを表示している ならば "駒場で飯くおう"と表示されていること かつ "tomy_kaira"と表示されていること もし "メッセージ"に twitter 用字句生成 @@ -29,8 +28,7 @@ かつ DMが送信されていること シナリオ: Mention で返信 前提 twitter ログイン - もし "ユーザ"ページを表示している - もし "DM"リンクをクリックする + もし "DM"ページを表示している ならば "駒場で飯くおう"と表示されていること かつ "tomy_kaira"と表示されていること もし "メッセージ"に twitter 用字句生成