Sha256: 0b95a5251e232339fd77c14c434ff98db05fbc01033a1387ea369d34bd183bbf
Contents?: true
Size: 928 Bytes
Versions: 1
Compression:
Stored size: 928 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Ekg do describe "#lub_dub" do [:name, :version].to_hashes {[ ['a name', '1.0'], ['another name', '2.0'] ]}.each do |test| describe "sending data" do before do time = Timecop.freeze Ekg::Data.expects(:send_data).with do |data| data[:name] == test[:name] and data[:version] == test[:version] and data[:time] == time end Ekg.config = test Ekg.lub_dub end after do Timecop.return end it "should post the data about the service" do # asserted above end end end it "should eat all errors" do time = Timecop.freeze Ekg::Data.stubs(:send_data).raises Ekg.config = {} Ekg.lub_dub # an error should not bubble up end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ekg-1.0.0 | spec/ekg_spec.rb |