Introduction
Introduction Statistics Contact Development Disclaimer Help
made ReportTagHelper#raphael_report_tag work with ruby 1.9 (see http://redmine.…
Log
Files
Refs
README
---
commit a631f8df0e52e45eae135bf8ecf158b08a7374a3
parent de7922a1a0fd55d0c699c8bfa4e3acc37e9d35b7
Author: Lars Kuhnt <[email protected]>
Date: Wed, 15 Sep 2010 15:07:20 +0200
made ReportTagHelper#raphael_report_tag work with ruby 1.9 (see http://redmine.…
Diffstat:
M lib/saulabs/reportable/report_tag_… | 2 +-
M spec/other/report_tag_helper_spec.… | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/lib/saulabs/reportable/report_tag_helper.rb b/lib/saulabs/reportab…
@@ -94,7 +94,7 @@ module Saulabs
graph.g.linechart(
-10, 4, #{options[:width]}, #{options[:height]},
#{(0..data.size).to_a.to_json},
- #{data.map { |d| eval options[:format], d[1].send(:binding) }.to_j…
+ #{data.map { |d| d[1].send(options[:format]) }.to_json},
#{raphael_options.to_json}
).hover(function() {
this.disc = graph.g.disc(this.x, this.y, 3).attr({fill: "#{options…
diff --git a/spec/other/report_tag_helper_spec.rb b/spec/other/report_tag_helpe…
@@ -30,6 +30,10 @@ describe Saulabs::Reportable::ReportTagHelper do
@helper.raphael_report_tag(data_set).should =~ /^<div id="#{data_set.mod…
@helper.raphael_report_tag(data_set).should =~ /^<div id="#{data_set.mod…
end
+
+ it 'should include the data [1,3]' do
+ @helper.raphael_report_tag(data_set).should =~ /\[1,3\]/
+ end
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.