Sha256: e7aaf73e7c93df32456367740239f42f1cbedb229468879ad18b862f43d57722
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
# encoding: UTF-8 require 'gooddata' RAW_DATA = {'metric'=> {'content'=> {'format'=>'#,##0', 'expression'=> 'SELECT SUM([/gdc/md/ksjy0nr3goz6k8yrpklz97l0mych7nez/obj/700])'}, 'meta' => {'author'=>'/gdc/account/profile/4e1e8cacc4989228e0ae531b30853248', 'uri'=>'/gdc/md/ksjy0nr3goz6k8yrpklz97l0mych7nez/obj/70', 'tags'=>'a b cg r t', 'created'=>'2014-04-30 22:47:57', 'identifier'=>'afo7bx1VakCz', 'deprecated'=>'0', 'summary'=>'', 'title'=>'sum of Lines changed', 'category'=>'metric', 'updated'=>'2014-05-05 20:00:42', 'contributor'=>'/gdc/account/profile/4e1e8cacc4989228e0ae531b30853248'}}} describe GoodData::MdObject do before(:each) do @instance = GoodData::MdObject.new(RAW_DATA) end describe '#identifier=' do it 'Allows setting a new identifier' do identifier = @instance.identifier @instance.identifier = 'new_id' new_identifier = @instance.identifier new_identifier.should_not == identifier new_identifier.should == 'new_id' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gooddata-0.6.4 | spec/unit/models/metadata_spec.rb |