Sha256: beb76bfe3fe30fb9527ade9f37f7c653f5140f0976fffa8cc4f86f0b784fc676

Contents?: true

Size: 813 Bytes

Versions: 10

Compression:

Stored size: 813 Bytes

Contents

<h1 class="problem">There was a problem rendering your fixtures</h1>
<h2>The following fixtures are broken:</h2>

<% @fixture_errors.each do |name, fixture_info, render_block = fixture_info[:render_block]| %>
<div class="fixture-info">
  <p>Name: <%= name %></p>
  <p>File: <%= render_block.source_location.join(":") %></p>
  <p>Controller: <%= fixture_info[:controller] %></p>
  <p>Extensions: <%= fixture_info[:extend].present? ? fixture_info[:extend].join(", ") : "None" %></p>
  <p>Source Code:
    <p>
      <% source_code = render_block.source rescue "" %>
      <% source_code.split("\n").each do |line| %>
        <div style="text-indent: <%= line.match(/\A\s+/).to_s.size %>em;"><%= line %></div>
      <% end %>
    </p>
  </p>
  <p class="error">Error: <%= fixture_info[:error] %></p>
</div>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
magic_lamp-1.9.0 app/views/magic_lamp/lint/fixture_errors.html.erb
magic_lamp-1.8.1 app/views/magic_lamp/lint/fixture_errors.html.erb
magic_lamp-1.8.0 app/views/magic_lamp/lint/fixture_errors.html.erb
magic_lamp-1.7.0 app/views/magic_lamp/lint/fixture_errors.html.erb
magic_lamp-1.6.2 app/views/magic_lamp/lint/fixture_errors.html.erb
magic_lamp-1.6.1 app/views/magic_lamp/lint/fixture_errors.html.erb
magic_lamp-1.6.0 app/views/magic_lamp/lint/fixture_errors.html.erb
magic_lamp-1.5.2 app/views/magic_lamp/lint/fixture_errors.html.erb
magic_lamp-1.5.1 app/views/magic_lamp/lint/fixture_errors.html.erb
magic_lamp-1.5.0 app/views/magic_lamp/lint/fixture_errors.html.erb