Sha256: c3010a74817f834e05531f78fc82d35a5d13dd8375c1fda63563f587e384edd7

Contents?: true

Size: 285 Bytes

Versions: 2

Compression:

Stored size: 285 Bytes

Contents

require 'test_helper'

class <%= class_name %>CellTest < ActionController::TestCase
  include Cells::AssertionsHelper
  
  <% for state in @states -%>
  test "<%= state %>" do
    html = render_cell(:<%= file_name %>, :<%= state %>)
    assert_selekt html, "p"
  end
  
  <% end %>
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cells-3.4.0 lib/generators/cells/templates/cell_test.rb
cells-3.4.0.beta3 lib/generators/cells/templates/cell_test.rb