Sha256: 47433528b814aa385b62a2f779a435ac7e6d7ee46fa1ea7a965cf976f77405e9
Contents?: true
Size: 847 Bytes
Versions: 1
Compression:
Stored size: 847 Bytes
Contents
require 'spec_helper' describe "Smartdc::Api::instrumentations" do before(:all) do @fixture = fixture('instrumentation') @instrumentation = client.analytics.instrumentations.create @fixture end describe ".create" do it "should return a instrumentation" do @instrumentation.module.should eq @fixture['module'] end end describe ".read" do it "should return a instrumentation" do client.analytics.instrumentations(@instrumentation.id).read.module.should eq @fixture['module'] end end describe ".find" do it "should return some instrumentations" do client.analytics.instrumentations.find.count.should > 0 end end describe ".delete" do it "should return true when success" do client.analytics.instrumentations(@instrumentation.id).delete.should be_nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
smartdc-0.4.0 | spec/smartdc/api/analytics_spec.rb |