also comit the fixed spec... - reportable - Fork of reportable required by WarVox, from hdm/reportable.
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit d396da54b9c7a502cb44117668731f896deb9575
 (DIR) parent bd08bb88bd992a5a86434d5b6c5e2509484acbc1
 (HTM) Author: Marco Otte-Witte <marco.otte-witte@simplabs.com>
       Date:   Sun, 18 Apr 2010 18:34:28 +0200
       
       also comit the fixed spec...
       
       Diffstat:
         M spec/other/sparkline_tag_helper_sp… |      12 ++++++------
       
       1 file changed, 6 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/spec/other/sparkline_tag_helper_spec.rb b/spec/other/sparkline_tag_helper_spec.rb
       @@ -6,7 +6,7 @@ describe Saulabs::Reportable::ReportTagHelper do
            @helper = TestHelper.new
          end
        
       -  describe '#sparkline_tag' do
       +  describe '#report_tag' do
        
            it 'should render an image with the correct source' do
              @helper.should_receive(:image_tag).once.with(
       @@ -14,7 +14,7 @@ describe Saulabs::Reportable::ReportTagHelper do
                { :title => '', :alt => '' }
              )
        
       -      @helper.sparkline_tag([[DateTime.now, 1.0], [DateTime.now, 2.0], [DateTime.now, 3.0]])
       +      @helper.report_tag([[DateTime.now, 1.0], [DateTime.now, 2.0], [DateTime.now, 3.0]])
            end
        
            it 'should add parameters for labels to the source of the image if rendering of lables is specified' do
       @@ -23,7 +23,7 @@ describe Saulabs::Reportable::ReportTagHelper do
                { :title => '', :alt => '' }
              )
        
       -      @helper.sparkline_tag([[DateTime.now, 1.0], [DateTime.now, 2.0], [DateTime.now, 3.0]], :labels => [:x, :y, :r, :t])
       +      @helper.report_tag([[DateTime.now, 1.0], [DateTime.now, 2.0], [DateTime.now, 3.0]], :labels => [:x, :y, :r, :t])
            end
        
            it 'should set the parameters for custom colors if custom colors are specified' do
       @@ -32,7 +32,7 @@ describe Saulabs::Reportable::ReportTagHelper do
                { :title => '', :alt => '' }
              )
        
       -      @helper.sparkline_tag([[DateTime.now, 1.0], [DateTime.now, 2.0], [DateTime.now, 3.0]], :line_color => '000000', :fill_color => 'ffffff')
       +      @helper.report_tag([[DateTime.now, 1.0], [DateTime.now, 2.0], [DateTime.now, 3.0]], :line_color => '000000', :fill_color => 'ffffff')
            end
        
            it 'should set the parameters for a custom title if a title specified' do
       @@ -41,7 +41,7 @@ describe Saulabs::Reportable::ReportTagHelper do
                { :title => 'title', :alt => '' }
              )
        
       -      @helper.sparkline_tag([[DateTime.now, 1.0], [DateTime.now, 2.0], [DateTime.now, 3.0]], :title => 'title')
       +      @helper.report_tag([[DateTime.now, 1.0], [DateTime.now, 2.0], [DateTime.now, 3.0]], :title => 'title')
            end
        
            it 'should use a specified alt text as alt text for the image' do
       @@ -50,7 +50,7 @@ describe Saulabs::Reportable::ReportTagHelper do
                { :title => '', :alt => 'alt' }
              )
        
       -      @helper.sparkline_tag([[DateTime.now, 1.0], [DateTime.now, 2.0], [DateTime.now, 3.0]], :alt => 'alt')
       +      @helper.report_tag([[DateTime.now, 1.0], [DateTime.now, 2.0], [DateTime.now, 3.0]], :alt => 'alt')
            end
        
          end