Skip to content

Commit

Permalink
cucumber: Direct Link to DM for passing test with JS
Browse files Browse the repository at this point in the history
  • Loading branch information
tomykaira committed Jun 22, 2011
1 parent df73bcd commit dd3af78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions features/support/paths.rb
Expand Up @@ -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/
Expand Down
6 changes: 2 additions & 4 deletions features/twitter_post.feature
Expand Up @@ -18,8 +18,7 @@
かつ "twitter"に投稿されていること
シナリオ: DM で返信
前提 twitter ログイン
もし "ユーザ"ページを表示している
もし "DM"リンクをクリックする
もし "DM"ページを表示している
ならば "駒場で飯くおう"と表示されていること
かつ "tomy_kaira"と表示されていること
もし "メッセージ"に twitter 用字句生成
Expand All @@ -29,8 +28,7 @@
かつ DMが送信されていること
シナリオ: Mention で返信
前提 twitter ログイン
もし "ユーザ"ページを表示している
もし "DM"リンクをクリックする
もし "DM"ページを表示している
ならば "駒場で飯くおう"と表示されていること
かつ "tomy_kaira"と表示されていること
もし "メッセージ"に twitter 用字句生成
Expand Down

0 comments on commit dd3af78

Please sign in to comment.