Introduction
Introduction Statistics Contact Development Disclaimer Help
added spec for Kvlr::ReportsAsSparkline::AssetTagHelper#sparkline_tag - reporta…
Log
Files
Refs
README
---
commit 0501284c2f5ff5aef62c0fc312f9bbfde444239a
parent d49526a87a4c6b2e298cb2324298e0a2cb8ec5bd
Author: Marco Otte-Witte <[email protected]>
Date: Wed, 14 Jan 2009 02:13:57 +0800
added spec for Kvlr::ReportsAsSparkline::AssetTagHelper#sparkline_tag
Signed-off-by: Marco Otte-Witte <[email protected]>
Diffstat:
A spec/other/asset_tag_helper_spec.rb | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+), 0 deletions(-)
---
diff --git a/spec/other/asset_tag_helper_spec.rb b/spec/other/asset_tag_helper_…
@@ -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.…
+ )
+
+ @helper.sparkline_tag([[DateTime.now, 1.0], [DateTime.now, 2.0], [DateTi…
+ end
+
+ end
+
+end
+
+class TestHelper
+
+ include Kvlr::ReportsAsSparkline::AssetTagHelper
+
+end
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.