Sha256: 3b4a3633e9334b504a964d3341111850d229e5d56f0fdeab2a5350bb51d4e429

Contents?: true

Size: 593 Bytes

Versions: 12

Compression:

Stored size: 593 Bytes

Contents

require 'ganymed/sampler/derive'
require 'sampler/datasource_examples'

describe Ganymed::Sampler::DataSource do
  include_context 'DataSource'
  subject { Ganymed::Sampler::DataSource.new(ticks) }

  let(:values) { 10.times.collect { rand } }

  it_behaves_like Ganymed::Sampler::DataSource

  describe "#flush" do
    it "is not implemented" do
      expect { subject.flush(1) }.to raise_error(NotImplementedError)
    end
  end

  describe "#feed" do
    it "is not implemented" do
      expect { subject.feed(ns, origin, nil, value) }.to raise_error(NotImplementedError)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ganymed-0.3.4 spec/sampler/datasource_spec.rb
ganymed-0.3.3 spec/sampler/datasource_spec.rb
ganymed-0.3.2 spec/sampler/datasource_spec.rb
ganymed-0.3.1 spec/sampler/datasource_spec.rb
ganymed-0.3.0 spec/sampler/datasource_spec.rb
ganymed-0.2.3 spec/sampler/datasource_spec.rb
ganymed-0.2.2 spec/sampler/datasource_spec.rb
ganymed-0.2.1 spec/sampler/datasource_spec.rb
ganymed-0.2.0 spec/sampler/datasource_spec.rb
ganymed-0.1.2 spec/sampler/datasource_spec.rb
ganymed-0.1.1 spec/sampler/datasource_spec.rb
ganymed-0.1.0 spec/sampler/datasource_spec.rb