Sha256: 7d1e75d3c7c595d9d558043ead76d251292bc3ce8b4df50eae0e91a73e3e6cc2

Contents?: true

Size: 440 Bytes

Versions: 35

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

35 entries across 35 versions & 1 rubygems

Version Path
volt-0.9.5.pre2 spec/integration/yield_spec.rb
volt-0.9.5.pre1 spec/integration/yield_spec.rb
volt-0.9.4 spec/integration/yield_spec.rb
volt-0.9.4.pre5 spec/integration/yield_spec.rb
volt-0.9.4.pre3 spec/integration/yield_spec.rb
volt-0.9.4.pre2 spec/integration/yield_spec.rb
volt-0.9.4.pre1 spec/integration/yield_spec.rb
volt-0.9.3 spec/integration/yield_spec.rb
volt-0.9.3.pre6 spec/integration/yield_spec.rb
volt-0.9.3.pre5 spec/integration/yield_spec.rb
volt-0.9.3.pre4 spec/integration/yield_spec.rb
volt-0.9.3.pre3 spec/integration/yield_spec.rb
volt-0.9.3.pre2 spec/integration/yield_spec.rb
volt-0.9.3.pre1 spec/integration/yield_spec.rb
volt-0.9.2 spec/integration/yield_spec.rb