require File.join(File.dirname(__FILE__), '..', 'spec_helper') describe Saulabs::Reportable::ReportTagHelper do before do @helper = TestHelper.new end describe '#raphael_report_tag' do data_set = Saulabs::Reportable::ResultSet.new([[DateTime.now, 1.0], [DateTime.now - 1.day, 3.0]], "User", "registrations") it 'should return a string' do @helper.raphael_report_tag(data_set).class.should == String end it 'should contain a div tag' do @helper.raphael_report_tag(data_set).should =~ /^