Sha256: 31a4068480e3851d14f9599bbd92b5a7044a9f3c54beaf67e46eb11ac628c0d5

Contents?: true

Size: 874 Bytes

Versions: 6

Compression:

Stored size: 874 Bytes

Contents

<% unless actual.exist? %>
  <% if @expected_count.nil? %>
    Expected <%= actual.reconstituted %> to match <%= expected.inspect %> but the element did not exist.
  <% else %>
    Expected <%= actual.reconstituted %> to match <%= expected.inspect %> <%= @expected_count_type.to_s.tr('_', ' ') %> <%= pluralize(@expected_count, 'time') %> but the element did not exist.
  <% end %>
<% else %>
  <% if @expected_count.nil? %>
    Expected text in <%= actual.reconstituted %> <%= (actual.truncated_text).inspect %> to match <%= expected.inspect %> but it did not.
  <% else %>
    Expected text in <%= actual.reconstituted %> <%= (actual.truncated_text).inspect %> to match <%= @expected_count_type.to_s.tr('_', ' ') %> <%= expected.inspect %> exactly <%= pluralize(@expected_count, 'time') %> but it was matched <%= pluralize(@actual_count, 'time') %>.
  <% end %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rspec-html-0.3.5 templates/failure/match_text.erb
rspec-html-0.3.4 templates/failure/match_text.erb
rspec-html-0.3.3 templates/failure/match_text.erb
rspec-html-0.3.2 templates/failure/match_text.erb
rspec-html-0.3.1 templates/failure/match_text.erb
rspec-html-0.3.0 templates/failure/match_text.erb