Created
June 7, 2012 07:06
-
-
Save ppworks/2887060 to your computer and use it in GitHub Desktop.
動いた
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe 'layouts/application' do | |
describe 'rendered application layout' do | |
subject { rendered } | |
context 'when body_class is setted ' do | |
before do | |
view.content_for(:body_class, 'test_class') | |
render | |
end | |
it 'should have body.test_class' do | |
should have_selector('body.test_class', :count => 1) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment