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
cloulu-1.0.0 lib/cc_api_stub/services.rb
cloulu-0.7.0 lib/cc_api_stub/services.rb
cloulu-0.6.6 lib/cc_api_stub/services.rb
cloulu-0.6.5 lib/cc_api_stub/services.rb
cloulu-0.6.1 lib/cc_api_stub/services.rb
cloulu-0.6.0 lib/cc_api_stub/services.rb
cloulu-0.5.1 lib/cc_api_stub/services.rb
cloulu-0.5.0 lib/cc_api_stub/services.rb
cloulu-0.3.0 lib/cc_api_stub/services.rb
cloulu-0.2.6 lib/cc_api_stub/services.rb
cloulu-0.2.5 lib/cc_api_stub/services.rb
cloulu-0.2.4 lib/cc_api_stub/services.rb
cloulu-0.2.3 lib/cc_api_stub/services.rb
cloulu-0.2.1 lib/cc_api_stub/services.rb
cloulu-0.2.0 lib/cc_api_stub/services.rb
cloulu-0.1.6 lib/cc_api_stub/services.rb
cloulu-0.1.5 lib/cc_api_stub/services.rb
cloulu-0.1.2 lib/cc_api_stub/services.rb
cloulu-0.1.1 lib/cc_api_stub/services.rb
static-1.0.3 vendor/cfoundry-0.5.2/lib/cc_api_stub/services.rb