Sha256: 13c5597a47725791fc22c4a6d089fbd954808d3ec4c48285bf95b41b60010ca0

Contents?: true

Size: 551 Bytes

Versions: 6

Compression:

Stored size: 551 Bytes

Contents

require 'test_helper'

class ThemesForRailsTest < Test::Unit::TestCase
  
  should 'change the base directory' do
    ThemesForRails.config do |config|
      config.base_dir = 'empty_themes'
    end
    
    assert_equal [], ThemesForRails.available_theme_names
  end
  
  should 'change the directory to views' do
    ThemesForRails.config do |config|
      config.themes_dir = 'another_themes'
    end
    
    assert_equal ['another_default'], ThemesForRails.available_theme_names
  end
  
  teardown do
    ThemesForRails.config.clear
  end
  
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
themes_for_rails-0.4.3 test/lib/config_test.rb
themes_for_rails-0.4.2 test/config_test.rb
themes_for_rails-0.4.1 test/config_test.rb
themes_for_rails-0.4.0 test/config_test.rb
themes_for_rails-0.3.1 test/config_test.rb
themes_for_rails-0.3.0 test/config_test.rb