fixes specs

This commit is contained in:
rgarcia
2016-06-06 13:52:40 +02:00
parent ad697cd2c1
commit 86f0cae7bb
2 changed files with 10 additions and 8 deletions

View File

@@ -1,6 +1,8 @@
<div>
<% @notifications.each do |notification| %>
<div><%= notification.title %></div>
<div><%= notification.body %></div>
<% end %>
</div>
<% if @notifications.present? %>
<div>
<% @notifications.each do |notification| %>
<div><%= notification.title %></div>
<div><%= notification.body %></div>
<% end %>
</div>
<% end %>

View File

@@ -17,7 +17,7 @@ feature 'Proposal Notifications' do
fill_in 'proposal_notification_title', with: "Thank you for supporting my proposal"
fill_in 'proposal_notification_body', with: "Please share it with others so we can make it happen!"
click_button "Send"
click_button "Send message"
expect(page).to have_content "Your message has been sent correctly."
expect(page).to have_content "Thank you for supporting my proposal"
@@ -66,7 +66,7 @@ feature 'Proposal Notifications' do
proposal = create(:proposal)
visit new_proposal_notification_path(proposal_id: proposal.id)
click_button "Send"
click_button "Send message"
expect(page).to have_content error_message
end