Skip to content
This repository has been archived by the owner on Jan 2, 2018. It is now read-only.

Commit

Permalink
spec for title alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
aderyabin committed Oct 20, 2011
1 parent 6af92dc commit ae6984e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/gchart_spec.rb
Expand Up @@ -372,9 +372,10 @@ def labeled_bar(options = {})
@chart.include?("chtt=Chart+Title").should be_true
end

it "should be able to a custom color and size title" do
it "should be able to a custom color, size and alignment for title" do
Gchart.line(:title => @title, :title_color => 'FF0000').include?('chts=FF0000').should be_true
Gchart.line(:title => @title, :title_size => '20').include?('chts=454545,20').should be_true
Gchart.line(:title => @title, :title_size => '20', :title_alignment => :left).include?('chts=454545,20,l').should be_true
end

it "should be able to have multiple legends" do
Expand Down

0 comments on commit ae6984e

Please sign in to comment.