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