Sha256: bb3232f2a46d0afc489c271f15eb60e1caf71b98fa301228983d27ecd46d9a9c

Contents?: true

Size: 739 Bytes

Versions: 52

Compression:

Stored size: 739 Bytes

Contents

require "spec_helper"

module CFoundry
  module V2
    describe Organization do
      let(:client) { build(:client) }
      let(:organization) { build(:organization, :client => client) }

      it_behaves_like "a summarizeable model" do
        subject { organization }
        let(:summary_attributes) { {:name => "fizzbuzz"} }
      end

      it "has quota_definition" do
        quota = build(:quota_definition)
        organization.quota_definition = quota
        expect(organization.quota_definition).to eq(quota)
      end

      it "has billing_enabled" do
        [true, false].each do |v|
          organization.billing_enabled = v
          expect(organization.billing_enabled).to eq(v)
        end
      end
    end
  end
end

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
cfoundry-4.5.2 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.5.1 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.5.0 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.3.12 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.3.11 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.3.10 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.3.9 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.3.8 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.3.7 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.3.6 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.3.5 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.3.5.rc1 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.3.4 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.3.4.rc1 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.3.3 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.3.2.rc1 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.3.1 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.3.0 spec/cfoundry/v2/organization_spec.rb
cfoundry-4.2.0.rc spec/cfoundry/v2/organization_spec.rb
cfoundry-4.1.0 spec/cfoundry/v2/organization_spec.rb