Sha256: 9281fb74cdc4e2f60d2849f15290a878bc97e067cc4db0604e81d7aff665a87a

Contents?: true

Size: 487 Bytes

Versions: 9

Compression:

Stored size: 487 Bytes

Contents

if ENV['BROWSER']
  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
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
volt-0.9.0.pre3 spec/integration/yield_spec.rb
volt-0.9.0.pre2 spec/integration/yield_spec.rb
volt-0.9.0.pre1 spec/integration/yield_spec.rb
volt-0.8.27.beta9 spec/integration/yield_spec.rb
volt-0.8.27.beta8 spec/integration/yield_spec.rb
volt-0.8.27.beta7 spec/integration/yield_spec.rb
volt-0.8.27.beta6 spec/integration/yield_spec.rb
volt-0.8.27.beta5 spec/integration/yield_spec.rb
volt-0.8.27.beta4 spec/integration/yield_spec.rb