Sha256: 8fac9d1b26435ebe0d4bca1d72c47fdf01fb78dfe5ac392e04e4ff322f39299c

Contents?: true

Size: 356 Bytes

Versions: 33

Compression:

Stored size: 356 Bytes

Contents

require 'spec_helper'

describe PulseMeter::Sensor::Timelined::UniqCounter do
  it_should_behave_like "timeline sensor"
  it_should_behave_like "timelined subclass", [:foo, :bar], 2
  it_should_behave_like "timelined subclass", [:foo, :bar, :foo], 2
  data = (1..100).map {rand(200)}
  it_should_behave_like "timelined subclass", data, data.uniq.count
end

Version data entries

33 entries across 33 versions & 3 rubygems

Version Path
pulse_meter_core-0.5.5 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse_meter_core-0.5.4 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse_meter_core-0.5.3 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse_meter_core-0.5.2 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse_meter_core-0.5.1 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse_meter_core-0.5.0 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse_meter_core-0.4.13 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse-meter-0.4.9 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse-meter-0.4.8 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse-meter-0.4.7 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse-meter-0.4.6 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse-meter-0.4.5 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse-meter-0.4.4 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse-meter-0.4.3 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse-meter-0.4.2 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse-meter-0.4.1 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse-meter-0.4.0 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse-meter-0.3.2 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse-meter-0.3.1 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb
pulse-meter-0.3.0 spec/pulse_meter/sensor/timelined/uniq_counter_spec.rb