Sha256: c0fbc668ab3cf1b65c1754477cceb7c22efed021f9758c70ad6e84646bd806df

Contents?: true

Size: 678 Bytes

Versions: 3

Compression:

Stored size: 678 Bytes

Contents

require 'matchers/have_structure'

describe "Context blocks", type: :request do
  example "A context block" do
    get '/new'

    response.body.should have_structure <<-HTML.strip_heredoc
      <html>
      <head>
        <title>Dummy app</title>
      </head>
      <body>
      <header>
        <h1>Dummy app</h1>
      </header>
      <form accept-charset="UTF-8" action="/new" method="post"><input name="utf8" type="hidden" value="&#x2713;" />
        <div class="field">
          <b>Name</b> <input id="dashboard_name" name="dashboard[name]" type="text" value="test" />
        </div>
      </form>

      <p>Thank you!</p>
      </body>
      </html>
    HTML
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
curly-templates-2.5.0 spec/integration/context_blocks_spec.rb
curly-templates-2.4.1 spec/integration/context_blocks_spec.rb
curly-templates-2.4.0 spec/integration/context_blocks_spec.rb