Sha256: 9327aede1851a153f95d6a57f00bc8d9bed80901da637856d6a7f88c99e30158

Contents?: true

Size: 653 Bytes

Versions: 11

Compression:

Stored size: 653 Bytes

Contents

# coding: utf-8
require File.dirname(__FILE__) + '/spec_helper'

describe 'LayoutHelper' do
  
  include FormtasticSpecHelper
  include Formtastic::LayoutHelper
  
  before do
    @output_buffer = ''
  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
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
formtastic-1.0.1 spec/layout_helper_spec.rb
formtastic-1.0.0 spec/layout_helper_spec.rb
formtastic-1.0.0.rc2 spec/layout_helper_spec.rb
formtastic-1.0.0.rc spec/layout_helper_spec.rb
formtastic-1.0.0.beta4 spec/layout_helper_spec.rb
formtastic-1.0.0.beta3 spec/layout_helper_spec.rb
formtastic-1.0.0.beta2 spec/layout_helper_spec.rb
formtastic-1.0.0.beta spec/layout_helper_spec.rb
formtastic-0.9.10 spec/layout_helper_spec.rb
formtastic-0.9.9 spec/layout_helper_spec.rb
formtastic-0.9.8 spec/layout_helper_spec.rb