Sha256: c359769cd4a2721ba5cf12cb6a8529232051c23cd9aa0c54e8266dd8359b4fa6
Contents?: true
Size: 673 Bytes
Versions: 1
Compression:
Stored size: 673 Bytes
Contents
require 'spec_helper' describe EasyAsPie::ViewHelper do include ControllerTestHelpers, EasyAsPie::ViewHelper # <div class="chart" data-percent="73">73%</div> describe '.easy_as_pie percent, *args' do context 'no arguments' do specify do expect { easy_as_pie }.to raise_error(ArgumentError) end end context '50%' do specify do easy_as_pie(50).should == "<div class=\"chart\" data-percent=\"50\">50%</div>" end end context "50%, 'of rooms'" do specify do easy_as_pie(50, '50 rooms').should == "<div class=\"chart\" data-percent=\"50\">50 rooms</div>" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
easy_as_pie-0.1.2 | spec/easy_as_pie/view_helper_spec.rb |