spec/integration/yield_spec.rb in volt-0.9.0.pre3 vs spec/integration/yield_spec.rb in volt-0.9.0.pre4
- old
+ new
@@ -1,18 +1,16 @@
-if ENV['BROWSER']
- require 'spec_helper'
+require 'spec_helper'
- describe 'yield binding', type: :feature, sauce: true do
- before do
- visit '/yield'
- end
+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 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
+ it 'should render the content from the tag\'s controller when yielding' do
+ expect(page).to have_content('This is my content')
end
-end
\ No newline at end of file
+end