Sha256: 3411dc0dc169febd7c2141ba4247227851d4c75ae80fc5d7347267d48b8e8cae

Contents?: true

Size: 631 Bytes

Versions: 1

Compression:

Stored size: 631 Bytes

Contents

require 'spec_helper'

describe ThemeHelper 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
      ['amelia', 'cerulean', 'cosmo', 'custom', 'cyborg', 'darkly', 'flatly','global','journal','readable','simplex','slate','spacelab','superhero','united','yeti'].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

1 entries across 1 versions & 1 rubygems

Version Path
bootswitch-0.0.5 spec/helpers/theme_helper_spec.rb