Sha256: 053c0a4fcc6488d906f0b51173e978b47ff8091a5444abdfb4f3fee62eecd481
Contents?: true
Size: 449 Bytes
Versions: 6
Compression:
Stored size: 449 Bytes
Contents
require 'rubygems' require 'require_relative' if RUBY_VERSION < '1.9' require_relative 'common' describe Metric do before do @metric = Metric.new(:id => 'metric1', :entity => 'inst1') end it 'cat be extended by add_property' do @metric.add_property :network, { :max => 100, :min => 10, :avg => 50 } @metric.properties.wont_be_empty @metric.properties.each do |p| p.must_be_kind_of Metric::Property end end end
Version data entries
6 entries across 6 versions & 1 rubygems