Sha256: e96fb1e18cb5bdf1bbdd7f1ef86ceb347d449476a7be5655caf104bfde1ba954

Contents?: true

Size: 303 Bytes

Versions: 10

Compression:

Stored size: 303 Bytes

Contents

require 'spec_helper'

describe Metric do
  it { should be_mongoid_document }
  it { should be_timestamped_document }

  it { should have_field(:name) }
  it { should be_embedded_in(:project) }
  it { should embed_many(:values).of_type(PropertyValue) }

  it { should validate_uniqueness_of(:name) }
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
techcor-0.0.10 spec/lib/storage/metric_mongo_spec.rb
techcor-0.0.9 spec/lib/storage/metric_mongo_spec.rb
techcor-0.0.8 spec/lib/storage/metric_mongo_spec.rb
techcor-0.0.7 spec/lib/storage/metric_mongo_spec.rb
techcor-0.0.6 spec/lib/storage/metric_mongo_spec.rb
techcor-0.0.5 spec/lib/storage/metric_mongo_spec.rb
techcor-0.0.4 spec/lib/storage/metric_mongo_spec.rb
techcor-0.0.3 spec/lib/storage/metric_mongo_spec.rb
techcor-0.0.2 spec/lib/storage/metric_mongo_spec.rb
techcor-0.0.1 spec/lib/storage/metric_mongo_spec.rb