Skip to content

Commit

Permalink
add one more spec for custome theme loading
Browse files Browse the repository at this point in the history
  • Loading branch information
jakehow committed Jul 2, 2008
1 parent 98bfa93 commit c0791ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/theme_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
Chart::Theme::THEME_FILES.should include("#{File.dirname(__FILE__)}/fixtures/another_test_theme.yml")
end

it 'should be able to load themes from the additional theme files' do
lambda { Chart::Theme.load(:test_two) }.should_not raise_error
end

it 'should raise ThemeNotFound if theme does not exist' do
lambda { Chart::Theme.load(:nonexistent) }.should raise_error(Chart::Theme::ThemeNotFound, "Could not locate nonexistent theme ...")
end
Expand Down

0 comments on commit c0791ba

Please sign in to comment.