Sha256: 110290493bac67d0187d38c933449e5cd4f97be7032cd2e811aa011f27ee6a75

Contents?: true

Size: 551 Bytes

Versions: 32

Compression:

Stored size: 551 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 "should produce PulseMeter::Visualize::Widgets::Gauge class" do
      w.to_data.should be_kind_of(PulseMeter::Visualize::Widgets::Gauge)
    end
  end

end



Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
pulse_meter_visualizer-0.4.20 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse_meter_visualizer-0.4.19 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse_meter_visualizer-0.4.18 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse_meter_visualizer-0.4.17 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse_meter_visualizer-0.4.16 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse_meter_visualizer-0.4.15 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse_meter_visualizer-0.4.14 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse_meter_visualizer-0.4.13 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse_meter_visualizer-0.4.12 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse_meter_visualizer-0.4.11 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse-meter-0.4.9 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse-meter-0.4.8 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse-meter-0.4.7 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse-meter-0.4.6 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse-meter-0.4.5 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse-meter-0.4.4 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse-meter-0.4.3 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse-meter-0.4.2 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse-meter-0.4.1 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb
pulse-meter-0.4.0 spec/pulse_meter/visualize/dsl/widgets/gauge_spec.rb