Sha256: 2a4d4c7c65632f569e5605410e488e01c9c347b0e45a3322584cf942bd9b9570

Contents?: true

Size: 225 Bytes

Versions: 2

Compression:

Stored size: 225 Bytes

Contents

shared_examples_for "custom layout" do
  it "renders specified layout" do
    get action

    expect(response.body).to match(/<h1>#{layout}<\/h1>/i)
    expect(response.body).to match(/Viewing the #{action} page/i)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
layout-0.2.1 spec/support/custom_layout_shared.rb
layout-0.2.0 spec/support/custom_layout_shared.rb