Sha256: 278df67f9f33f55588ac19b0ec5c3fe4fdeed91a4c8be913e40e2602d6bdfaf8

Contents?: true

Size: 440 Bytes

Versions: 11

Compression:

Stored size: 440 Bytes

Contents

require 'spec_helper'

describe 'yield binding', type: :feature, sauce: true do
  before do
    visit '/yield'
  end

  it 'should render the yielded content multiple times' do
    expect(page).to have_content("My yielded content 1")
    expect(page).to have_content("My yielded content 2")
  end

  it 'should render the content from the tag\'s controller when yielding' do
    expect(page).to have_content('This is my content')
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
volt-0.9.1 spec/integration/yield_spec.rb
volt-0.9.1.pre5 spec/integration/yield_spec.rb
volt-0.9.1.pre4 spec/integration/yield_spec.rb
volt-0.9.1.pre3 spec/integration/yield_spec.rb
volt-0.9.1.pre2 spec/integration/yield_spec.rb
volt-0.9.1.pre1 spec/integration/yield_spec.rb
volt-0.9.0 spec/integration/yield_spec.rb
volt-0.9.0.pre7 spec/integration/yield_spec.rb
volt-0.9.0.pre6 spec/integration/yield_spec.rb
volt-0.9.0.pre5 spec/integration/yield_spec.rb
volt-0.9.0.pre4 spec/integration/yield_spec.rb