Sha256: fd71b61abdb6d00570d31488aedff2b5eb036b2b6aa57273689792a2c179d14f

Contents?: true

Size: 169 Bytes

Versions: 38

Compression:

Stored size: 169 Bytes

Contents

shared_context 'API' do
  include Rack::Test::Methods

  def app
    $app ||= Cellect::Server::API.new
  end

  def json
    Oj.strict_load last_response.body
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
cellect-client-3.0.2 spec/support/shared_api_context.rb
cellect-server-3.0.2 spec/support/shared_api_context.rb
cellect-client-3.0.1 spec/support/shared_api_context.rb
cellect-server-3.0.1 spec/support/shared_api_context.rb
cellect-client-3.0.0 spec/support/shared_api_context.rb
cellect-server-3.0.0 spec/support/shared_api_context.rb
cellect-client-2.1.1 spec/support/shared_api_context.rb
cellect-server-2.1.1 spec/support/shared_api_context.rb
cellect-client-2.1.0 spec/support/shared_api_context.rb
cellect-server-2.1.0 spec/support/shared_api_context.rb
cellect-client-2.0.1 spec/support/shared_api_context.rb
cellect-server-2.0.1 spec/support/shared_api_context.rb
cellect-client-2.0.0 spec/support/shared_api_context.rb
cellect-server-2.0.0 spec/support/shared_api_context.rb
cellect-client-2.0.0.beta4 spec/support/shared_api_context.rb
cellect-server-2.0.0.beta4 spec/support/shared_api_context.rb
cellect-client-2.0.0.beta3 spec/support/shared_api_context.rb
cellect-server-2.0.0.beta3 spec/support/shared_api_context.rb
cellect-client-2.0.0.beta2 spec/support/shared_api_context.rb
cellect-server-2.0.0.beta2 spec/support/shared_api_context.rb