Sha256: 4a24ace1d265023be6551306fbb2cdd1a3a1d5a224d6c2302f3d88e6d82560a5

Contents?: true

Size: 535 Bytes

Versions: 39

Compression:

Stored size: 535 Bytes

Contents

module CcApiStub
  module Services
    extend Helper

    class << self
      def succeed_to_load
        stub_get(collection_endpoint, {}, response(200, services_fixture))
      end

      def service_fixture_hash
        MultiJson.load(services_fixture["resources"].first.to_json, :symbolize_keys => true)
      end

      private

      def collection_endpoint
        %r{/v2/services\?inline-relations-depth=1}
      end

      def services_fixture
        Helper.load_fixtures("fake_cc_service_types")
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 3 rubygems

Version Path
cfoundry-0.5.3.rc7 lib/cc_api_stub/services.rb
static-1.0.1 vendor/cfoundry-0.5.2/lib/cc_api_stub/services.rb
cfoundry-0.6.0 lib/cc_api_stub/services.rb
cfoundry-0.6.0.rc6 lib/cc_api_stub/services.rb
cfoundry-0.6.0.rc5 lib/cc_api_stub/services.rb
cfoundry-0.5.3.rc6 lib/cc_api_stub/services.rb
cfoundry-0.6.0.rc4 lib/cc_api_stub/services.rb
cfoundry-0.6.0.rc3 lib/cc_api_stub/services.rb
cfoundry-0.6.0.rc2 lib/cc_api_stub/services.rb
cfoundry-0.6.0.rc1 lib/cc_api_stub/services.rb
cfoundry-0.5.3.rc5 lib/cc_api_stub/services.rb
cfoundry-0.5.3.rc4 lib/cc_api_stub/services.rb
cfoundry-0.5.3.rc3 lib/cc_api_stub/services.rb
cfoundry-0.5.3.rc2 lib/cc_api_stub/services.rb
cfoundry-0.5.3.rc1 lib/cc_api_stub/services.rb
cfoundry-0.5.2 lib/cc_api_stub/services.rb
cfoundry-0.5.1.rc5 lib/cc_api_stub/services.rb
cfoundry-0.5.1.rc4 lib/cc_api_stub/services.rb
cfoundry-0.5.1.rc3 lib/cc_api_stub/services.rb