Sha256: 29a9ebd9c04fa10d8e9d46a523f5caf45c61b79bdc13fef8b223a0fff68e6389

Contents?: true

Size: 583 Bytes

Versions: 5

Compression:

Stored size: 583 Bytes

Contents

module Fizzy
  module Api
    module Endpoints
      shared_examples_for 'an endpoint' do
        it 'should define a process response method' do
          expect(subject.methods).to include(:process_response)
        end
        it 'should define an invalid response method' do
          methods = subject.private_methods + subject.methods
          expect(methods).to include(:invalid_response)
        end
        it 'should define a select_measurement_text method' do
          expect(subject.methods).to include(:select_measurement_text)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fizzy-api-0.1.4 spec/shared_examples_for_endpoints.rb
fizzy-api-0.1.3 spec/shared_examples_for_endpoints.rb
fizzy-api-0.1.2 spec/shared_examples_for_endpoints.rb
fizzy-api-0.1.1 spec/shared_examples_for_endpoints.rb
fizzy-api-0.1.0 spec/shared_examples_for_endpoints.rb