require 'active_record' in spec/boot.rb to get rid of deprecation warning; fixed specs - reportable - Fork of reportable required by WarVox, from hdm/reportable.
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit 9a773ed89e67bad8f154c4aa2b261eda45dcfa37
 (DIR) parent 915e4799ef51997835a38be511f0366edd2053e3
 (HTM) Author: Marco Otte-Witte <marco.otte-witte@simplabs.com>
       Date:   Sat,  2 Jan 2010 11:37:07 +0100
       
       require 'active_record' in spec/boot.rb to get rid of deprecation warning; fixed specs
       
       Diffstat:
         M spec/boot.rb                        |       2 +-
         M spec/other/sparkline_tag_helper_sp… |       9 ++++++---
       
       2 files changed, 7 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/spec/boot.rb b/spec/boot.rb
       @@ -1,7 +1,7 @@
        plugin_root = File.join(File.dirname(__FILE__), '..')
        
        gem 'rails'
       -require 'activerecord'
       +require 'active_record'
        require 'active_support'
        require 'action_controller'
        require 'action_view'
 (DIR) diff --git a/spec/other/sparkline_tag_helper_spec.rb b/spec/other/sparkline_tag_helper_spec.rb
       @@ -10,7 +10,8 @@ describe Simplabs::ReportsAsSparkline::SparklineTagHelper do
        
            it 'should render an image with the correct source' do
              @helper.should_receive(:image_tag).once.with(
       -        'http://chart.apis.google.com/chart?cht=ls&chs=300x34&chd=t:1.0,2.0,3.0&chco=0077cc&chm=B,e6f2fa,0,0,0&chls=1,0,0&chds=1.0,3.0'
       +        'http://chart.apis.google.com/chart?cht=ls&chs=300x34&chd=t:1.0,2.0,3.0&chco=0077cc&chm=B,e6f2fa,0,0,0&chls=1,0,0&chds=1.0,3.0',
       +        { :title => '', :alt => '' }
              )
        
              @helper.sparkline_tag([[DateTime.now, 1.0], [DateTime.now, 2.0], [DateTime.now, 3.0]])
       @@ -18,7 +19,8 @@ describe Simplabs::ReportsAsSparkline::SparklineTagHelper do
        
            it 'should add parameters for labels to the source of the image if rendering of lables is specified' do
              @helper.should_receive(:image_tag).once.with(
       -        'http://chart.apis.google.com/chart?cht=ls&chs=300x34&chd=t:1.0,2.0,3.0&chco=0077cc&chm=B,e6f2fa,0,0,0&chls=1,0,0&chds=1.0,3.0&chxt=x,y,r,t&chxr=0,0,3|1,0,3.0|2,0,3.0|3,0,3'
       +        'http://chart.apis.google.com/chart?cht=ls&chs=300x34&chd=t:1.0,2.0,3.0&chco=0077cc&chm=B,e6f2fa,0,0,0&chls=1,0,0&chds=1.0,3.0&chxt=x,y,r,t&chxr=0,0,3|1,0,3.0|2,0,3.0|3,0,3',
       +        { :title => '', :alt => '' }
              )
        
              @helper.sparkline_tag([[DateTime.now, 1.0], [DateTime.now, 2.0], [DateTime.now, 3.0]], :labels => [:x, :y, :r, :t])
       @@ -26,7 +28,8 @@ describe Simplabs::ReportsAsSparkline::SparklineTagHelper do
        
            it 'should set the parameters for custom colors if custom colors are specified' do
              @helper.should_receive(:image_tag).once.with(
       -        'http://chart.apis.google.com/chart?cht=ls&chs=300x34&chd=t:1.0,2.0,3.0&chco=000000&chm=B,ffffff,0,0,0&chls=1,0,0&chds=1.0,3.0'
       +        'http://chart.apis.google.com/chart?cht=ls&chs=300x34&chd=t:1.0,2.0,3.0&chco=000000&chm=B,ffffff,0,0,0&chls=1,0,0&chds=1.0,3.0',
       +        { :title => '', :alt => '' }
              )
        
              @helper.sparkline_tag([[DateTime.now, 1.0], [DateTime.now, 2.0], [DateTime.now, 3.0]], :line_color => '000000', :fill_color => 'ffffff')