Sha256: 71f748fccd554a8fc0eeb8e2cbc45031ce63b5ac8eefd78aef8f941dd4f1420f
Contents?: true
Size: 892 Bytes
Versions: 1
Compression:
Stored size: 892 Bytes
Contents
# coding: utf-8 require File.dirname(__FILE__) + '/spec_helper' describe 'LayoutHelper' do include FormtasticSpecHelper include Formtastic::LayoutHelper before do @output_buffer = ActiveSupport::SafeBuffer.new end describe '#formtastic_stylesheet_link_tag' do before do concat(formtastic_stylesheet_link_tag()) end it 'should render a link to formtastic.css' do output_buffer.should have_tag("link[@href='/stylesheets/formtastic.css']") end it 'should render a link to formtastic_changes.css' do output_buffer.should have_tag("link[@href='/stylesheets/formtastic_changes.css']") end end # FIXME: Rspec issue? def controller mock('controller') end # FIXME: Rspec issue? def config returning mock('config') do |config| config.stub!(:assets_dir).and_return('') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
formtastic-rails3-0.9.7 | spec/layout_helper_spec.rb |