Sha256: 428e3d645adfc27fe8d44742164030bad383268441fb292b1d64eec1d692e2c5

Contents?: true

Size: 322 Bytes

Versions: 6

Compression:

Stored size: 322 Bytes

Contents

require File.expand_path("helper", File.dirname(__FILE__))

test "simple layout support" do
  Cuba.define do
    on true do
      res.write render("test/fixtures/layout.erb") {
        render("test/fixtures/content.erb")
      }
    end
  end

  _, _, resp = Cuba.call({})

  assert_equal ["alfa beta\n\n"], resp.body
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cuba-2.2.1 test/layout.rb
cuba-2.2.0 test/layout.rb
cuba-2.2.0.rc1 test/layout.rb
cuba-2.1.0 test/layout.rb
cuba-2.1.0.rc1 test/layout.rb
cuba-2.0.1 test/layout.rb