Update test
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<% end %>
|
||||
<% else %>
|
||||
<%= button_to bucket_bubble_pin_path(@bubble.bucket, @bubble), class: "btn" do %>
|
||||
<%= image_tag "unpinned.svg", size: 16, aria: { hidden: true } %>
|
||||
<%= image_tag "pinned.svg", size: 16, aria: { hidden: true } %>
|
||||
<span class="for-screen-reader">Pin this card</span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<%= turbo_frame_tag dom_id(@bubble, :watch) do %>
|
||||
<% if @bubble.watched_by? Current.user %>
|
||||
<%= button_to bucket_bubble_watch_path(@bubble.bucket, @bubble), method: :delete, class: "btn btn--reversed" do %>
|
||||
<%= image_tag "bell-off.svg", size: 16, aria: { hidden: true } %>
|
||||
<%= image_tag "bell.svg", size: 16, aria: { hidden: true } %>
|
||||
<span class="for-screen-reader">Stop watching</span>
|
||||
<% end %>
|
||||
<% else %>
|
||||
|
||||
@@ -2,9 +2,9 @@ require "test_helper"
|
||||
|
||||
class EventSummaryTest < ActiveSupport::TestCase
|
||||
test "body" do
|
||||
assert_equal "Added by David 7 days ago. Assigned to JZ 7 days ago. David +1.", event_summaries(:logo_initial_activity).body
|
||||
assert_equal "Assigned to Kevin 1 day ago. Kevin +2 and JZ +1.", event_summaries(:logo_second_activity).body
|
||||
assert_equal "Added by David. Assigned to JZ. David +1.", event_summaries(:logo_initial_activity).body
|
||||
assert_equal "Assigned to Kevin. Kevin +2 and JZ +1.", event_summaries(:logo_second_activity).body
|
||||
assert_equal "JZ +1.", event_summaries(:logo_third_activity).body
|
||||
assert_equal "Added by Kevin 7 days ago.", event_summaries(:text_initial_activity).body
|
||||
assert_equal "Added by Kevin.", event_summaries(:text_initial_activity).body
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user