Sha256: 86f8c788d6f1efcaba28db0e9159e333f86614bf5f10353b243bb9f44fb27a78

Contents?: true

Size: 461 Bytes

Versions: 23

Compression:

Stored size: 461 Bytes

Contents

module CcApiStub
  module OrganizationUsers
    extend Helper

    class << self
      def succeed_to_delete(options = {})
        stub_delete(object_endpoint(options[:id]), {}, response(200, ""))
      end

      def fail_to_delete(options = {})
        stub_delete(object_endpoint(options[:id]), {}, response(500))
      end

      private

      def object_endpoint(id = nil)
        %r{/v2/organizations/[^/]+/users/#{id}[^/]+$}
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
jfoundry-0.1.7 lib/cc_api_stub/organization_users.rb
jfoundry-0.1.6 lib/cc_api_stub/organization_users.rb
cfoundry-4.5.2 lib/cc_api_stub/organization_users.rb
cfoundry-4.5.1 lib/cc_api_stub/organization_users.rb
cfoundry-4.5.0 lib/cc_api_stub/organization_users.rb
cfoundry-4.3.12 lib/cc_api_stub/organization_users.rb
cfoundry-4.3.11 lib/cc_api_stub/organization_users.rb
cfoundry-4.3.10 lib/cc_api_stub/organization_users.rb
cfoundry-4.3.9 lib/cc_api_stub/organization_users.rb
cfoundry-4.3.8 lib/cc_api_stub/organization_users.rb
jfoundry-0.1.4 lib/cc_api_stub/organization_users.rb
jfoundry-0.1.3 lib/cc_api_stub/organization_users.rb
cfoundry-4.3.7 lib/cc_api_stub/organization_users.rb
jfoundry-0.1.2 lib/cc_api_stub/organization_users.rb
jfoundry-0.1.1 lib/cc_api_stub/organization_users.rb
jfoundry-0.1.0.pre lib/cc_api_stub/organization_users.rb
jfoundry-0.1.0 lib/cc_api_stub/organization_users.rb
cfoundry-4.3.6 lib/cc_api_stub/organization_users.rb
cfoundry-4.3.5 lib/cc_api_stub/organization_users.rb
cfoundry-4.3.5.rc1 lib/cc_api_stub/organization_users.rb