Sha256: 601cdabd0e21c6f1813839e6805f2bb1ddd8d0a5c9c0f126192f45722452402e
Contents?: true
Size: 576 Bytes
Versions: 1
Compression:
Stored size: 576 Bytes
Contents
require 'spec_helper' describe Bumpspark::Graph do subject do Bumpspark::Graph.new(data).send("to_#{format}") end context "generating pngs" do let(:format) { 'png' } context "for an empty bumpspark" do let(:data) { [] } it { should be_a_valid_png } end context "for a bumpspark with one datapoint" do let(:data) { [1] } it { should be_a_valid_png } end context "for a bumpspark with multiple datapoints" do let(:data) { [1, 2, 3] } it { should be_a_valid_png } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bumpspark-2.0.0 | spec/lib/bumpspark/graph_spec.rb |