added spec for Kvlr::ReportsAsSparkline::AssetTagHelper#sparkline_tag - reportable - Fork of reportable required by WarVox, from hdm/reportable.
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
       ---
 (DIR) commit 0501284c2f5ff5aef62c0fc312f9bbfde444239a
 (DIR) parent d49526a87a4c6b2e298cb2324298e0a2cb8ec5bd
 (HTM) Author: Marco Otte-Witte <marco.otte-witte@simplabs.com>
       Date:   Wed, 14 Jan 2009 02:13:57 +0800
       
       added spec for Kvlr::ReportsAsSparkline::AssetTagHelper#sparkline_tag
       
       Signed-off-by: Marco Otte-Witte <marco.otte-witte@simplabs.com>
       Diffstat:
         A spec/other/asset_tag_helper_spec.rb |      27 +++++++++++++++++++++++++++
       
       1 file changed, 27 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/spec/other/asset_tag_helper_spec.rb b/spec/other/asset_tag_helper_spec.rb
       @@ -0,0 +1,27 @@
       +require File.join(File.dirname(__FILE__), '..', 'spec_helper')
       +
       +describe Kvlr::ReportsAsSparkline::AssetTagHelper do
       +
       +  before do
       +    @helper = TestHelper.new
       +  end
       +
       +  describe '#sparkline_tag' 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'
       +      )
       +
       +      @helper.sparkline_tag([[DateTime.now, 1.0], [DateTime.now, 2.0], [DateTime.now, 3.0]])
       +    end
       +
       +  end
       +
       +end
       +
       +class TestHelper
       +
       +  include Kvlr::ReportsAsSparkline::AssetTagHelper
       +
       +end