Sha256: 28b0ef4c8079bdcb5b31e6070ec4adbd9cafc58970f70590d74195761ce53b43

Contents?: true

Size: 547 Bytes

Versions: 2

Compression:

Stored size: 547 Bytes

Contents

require 'spec_helper'

describe PulseMeter::Visualize::DSL::Widgets::Gauge do
  it_should_behave_like "dsl widget"

  let(:interval){ 100 }
  let(:name) { "some_sensor" }
  let!(:sensor){ PulseMeter::Sensor::Timelined::Max.new(name, :ttl => 1000, :interval => interval) }

  let(:widget_name){ "some_widget" }
  let(:w){ described_class.new(widget_name)  }

  describe "#to_data" do
    it "produces PulseMeter::Visualize::Widgets::Gauge class" do
      expect(w.to_data).to be_kind_of(PulseMeter::Visualize::Widgets::Gauge)
    end
  end

end



Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pulse_meter_visualizer-0.4.22 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse_meter_visualizer-0.4.21 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb