Sha256: 3e0b1bbeec66f96d9e986c69e1fa7ac056f1a25400ccb6ec83db921e5f61c744

Contents?: true

Size: 489 Bytes

Versions: 1

Compression:

Stored size: 489 Bytes

Contents

require "spec_helper"

describe "ThemesForRails::Config" do
  before :each do
    ThemesForRails.config.clear
  end

  it 'should change the directory to directory with themes that we specify' do
    ThemesForRails.config do |config|
      config.themes_dir = 'app/themes'
    end

    ThemesForRails.available_theme_names.should == ['default']
  end

  it 'should change the directory to default themes directory' do
  	ThemesForRails.available_theme_names.should == ['default']
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
themes_for_rails-1.0.0rc1 spec/lib/config_spec.rb