Skip to content

Instantly share code, notes, and snippets.

@ppworks
Created June 7, 2012 07:06
Show Gist options
  • Save ppworks/2887060 to your computer and use it in GitHub Desktop.
Save ppworks/2887060 to your computer and use it in GitHub Desktop.
動いた
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