Sha256: 56197fab289b0efd04b599e7ef48cd7ec703dd5c0d8f00522443ae9104efa04f

Contents?: true

Size: 511 Bytes

Versions: 1

Compression:

Stored size: 511 Bytes

Contents

require File.join(File.dirname(__FILE__), '..', 'spec_helper')

describe Relax::Service do
  it "allows contextual defaults to be set" do
    Relax::Service.should respond_to(:defaults)
  end

  describe ".endpoint" do
    it "is callable from within a Service" do
      Relax::Service.should respond_to(:endpoint)
    end

    it "creates a new Endpoint" do
      Relax::Endpoint.should_receive(:new)

      class Service < Relax::Service
        endpoint "http://api.example.com/"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
relax-0.1.0 spec/relax/service_spec.rb