Sha256: 83895890795553b602fa1f206b35128182aa4153dcd0b8d607426092a73f5f57

Contents?: true

Size: 459 Bytes

Versions: 1

Compression:

Stored size: 459 Bytes

Contents

require 'spec_helper'
require 'rack/test'
require 'lydia/delegator'

extend Lydia::Delegator

describe 'Delegator' do
  include Rack::Test::Methods

  class TestDelegator
    extend Lydia::Delegator

    get '/hello' do
      'Hello world!'
    end
  end

  def app
    Lydia::Application.new
  end

  it 'Delegates to Application' do
    get '/hello'
    expect(last_response.status).to eq(200)
    expect(last_response.body).to eq('Hello world!')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lydia-0.1.4 spec/delegator_spec.rb