Sha256: deb00a64e3aa26084e7482b469ead6a25d72b1061abf55cb788d593a36331feb

Contents?: true

Size: 880 Bytes

Versions: 6

Compression:

Stored size: 880 Bytes

Contents

<% if actual.element.nil? %>
  <% if @expected_count.nil? %>
Expected <%= reconstituted(actual, @options) %> to contain <%= reconstituted(expected, @options) %> but the element did not exist.
  <% else %>
    Expected <%= reconstituted(actual, @options) %> to contain <%= reconstituted(expected, @options) %> <%= @expected_count_type.to_s.tr('_', ' ') %> <%= pluralize(@expected_count, 'time') %> but the element did not exist.
  <% end %>
<% else %>
  <% if @expected_count.nil? %>
Expected <%= reconstituted(actual, @options) %> to contain <%= reconstituted(expected, @options) %> but it did not.
  <% else %>
Expected <%= reconstituted(actual, @options) %> to contain <%= reconstituted(expected, @options) %> <%= @expected_count_type.to_s.tr('_', ' ') %> <%= pluralize(@expected_count, 'time') %> but it was found <%= 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/contain_tag.erb
rspec-html-0.3.4 templates/failure/contain_tag.erb
rspec-html-0.3.3 templates/failure/contain_tag.erb
rspec-html-0.3.2 templates/failure/contain_tag.erb
rspec-html-0.3.1 templates/failure/contain_tag.erb
rspec-html-0.3.0 templates/failure/contain_tag.erb