diff --git a/app/views/members/index.html.haml b/app/views/members/index.html.haml
index 3891d91..22d9341 100644
--- a/app/views/members/index.html.haml
+++ b/app/views/members/index.html.haml
@@ -1,19 +1,9 @@
%h1 よちよち.rb の Ruby Kaja を選ぼう!
--# XXX なんか関連がきもちわるいような、、、
-%p 現在、#{current_user.member.nickname} としてサインインしています
= image_tag "yochi_rabbit.jpg", alt: "よちよち.rb", width: 500
%div= alert
-.vote-link
- - if current_user.vote
- = link_to '投票を編集する', edit_vote_path(current_user.vote)
- - else
- = link_to '新しく投票する', new_vote_path
-
-%div= link_to 'サインアウト', signout_path, method: 'delete'
-
%h2 メンバー一覧
%ul
diff --git a/features/step_definitions/common_steps.rb b/features/step_definitions/common_steps.rb
index 81ccde0..daf0ecc 100644
--- a/features/step_definitions/common_steps.rb
+++ b/features/step_definitions/common_steps.rb
@@ -3,9 +3,7 @@
end
ならば(/^"([^"]*)" というリンクが表示されていること$/) do |link|
- within '.vote-link' do
- expect(page).to have_link link
- end
+ expect(page).to have_link link
end
もし(/^Kajaeru にアクセスする$/) do
diff --git a/features/step_definitions/vote_steps.rb b/features/step_definitions/vote_steps.rb
index 993349d..8f8a111 100644
--- a/features/step_definitions/vote_steps.rb
+++ b/features/step_definitions/vote_steps.rb
@@ -1,7 +1,5 @@
もし(/^投票ページを表示する$/) do
- within '.vote-link' do
- all('a').first.click
- end
+ click_on '投票する'
end
もし(/^以下の内容で新規投票する:$/) do |table|
diff --git a/features/top.feature b/features/top.feature
index 96a7b0b..313447e 100644
--- a/features/top.feature
+++ b/features/top.feature
@@ -7,7 +7,7 @@
シナリオ: 投票が済んでいるかどうかで表示されるリンクの文言が変わる
前提 GitHub アカウント "alice" でログインしている
- ならば "新しく投票する" というリンクが表示されていること
+ ならば "投票する" というリンクが表示されていること
もし 投票ページを表示する
かつ 以下の内容で新規投票する:
@@ -17,4 +17,4 @@
もし ホームにアクセスする
- ならば "投票を編集する" というリンクが表示されていること
+ ならば "編集する" というリンクが表示されていること