Sha256: 1b3c1e944ced5fc4b7aabee6bd71fed5cc809228934b261d2deaf1b9b9aec2a6

Contents?: true

Size: 611 Bytes

Versions: 4

Compression:

Stored size: 611 Bytes

Contents

require 'spec_helper'

describe "Collection blocks", type: :request do
  example "Rendering collections" do
    get '/collection'

    response.body.should == <<-HTML.strip_heredoc
      <html>
      <head>
        <title>Dummy app</title>
      </head>
      <body>
      <ul>

        <li>uno</li>
        <ul>
          <li>1</li><li>2</li><li>3</li>
        </ul>

        <li>dos</li>
        <ul>
          <li>1</li><li>2</li><li>3</li>
        </ul>

        <li>tres!</li>
        <ul>
          <li>1</li><li>2</li><li>3</li>
        </ul>

      </ul>

      </body>
      </html>
    HTML
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
curly-templates-2.3.1 spec/integration/collection_blocks_spec.rb
curly-templates-2.3.0 spec/integration/collection_blocks_spec.rb
curly-templates-2.2.0 spec/integration/collection_blocks_spec.rb
curly-templates-2.1.1 spec/integration/collection_blocks_spec.rb