Sha256: e1f243b2a16139f167505532bcf6d7502239accb4d18c281998c23d3f2fc916e

Contents?: true

Size: 507 Bytes

Versions: 14

Compression:

Stored size: 507 Bytes

Contents

require 'spec_helper'

describe ApplicationHelper, type: :helper do
  describe '#themes' do
    it 'returns an array' do
      helper.themes.should be_an Array
    end
  end
  describe '#theme_name' do
    it 'returns the a theme name' do
      helper.themes.should include helper.theme_name
    end
  end
  describe '#theme_stylesheet_link_tag' do
    it 'returns a stylesheet link tag for the theme' do
      helper.theme_stylesheet_link_tag.should match /^<link.*rel="stylesheet".*\/>$/
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
bootswitch-0.6.0 spec/helpers/application_helper_spec.rb
bootswitch-0.5.4 spec/helpers/application_helper_spec.rb
bootswitch-0.5.3 spec/helpers/application_helper_spec.rb
bootswitch-0.5.2 spec/helpers/application_helper_spec.rb
bootswitch-0.5.1 spec/helpers/application_helper_spec.rb
bootswitch-0.5.0 spec/helpers/application_helper_spec.rb
bootswitch-0.4.0 spec/helpers/application_helper_spec.rb
bootswitch-0.3.0 spec/helpers/application_helper_spec.rb
bootswitch-0.2.2 spec/helpers/application_helper_spec.rb
bootswitch-0.2.1 spec/helpers/application_helper_spec.rb
bootswitch-0.2.0 spec/helpers/application_helper_spec.rb
bootswitch-0.1.3 spec/helpers/application_helper_spec.rb
bootswitch-0.1.2 spec/helpers/application_helper_spec.rb
bootswitch-0.1.1 spec/helpers/application_helper_spec.rb