Sha256: 1ce5c8b4c0cb81566f67ffc7df60fd739eeef97f704a32d6b649008fc727697a

Contents?: true

Size: 424 Bytes

Versions: 4

Compression:

Stored size: 424 Bytes

Contents

require 'spec_helper'

describe Saddle::BaseEndpoint do
  let(:base_endpoint) { Saddle::BaseEndpoint.new(Saddle::Client.create) }

  it 'can define singleton methods' do
    expect(base_endpoint.respond_to?(:define_singleton_method)).to be_true
  end

  it 'responds to any defined singleton methods' do
    base_endpoint.define_singleton_method(:my_method) { true }
    expect(base_endpoint.my_method).to be_true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
saddle-0.1.0 spec/endpoint/base_endpoint_spec.rb
saddle-0.0.53 spec/endpoint/base_endpoint_spec.rb
saddle-0.0.51 spec/endpoint/base_endpoint_spec.rb
saddle-0.0.50 spec/endpoint/base_endpoint_spec.rb