Sha256: 220c4bf52e272610dfcc3ae293eed8255c904ca6825f990460de826917972955

Contents?: true

Size: 334 Bytes

Versions: 1

Compression:

Stored size: 334 Bytes

Contents

require "spec_helper"

describe StackExchange::StackOverflow::Base do
  it "should allow extended classes to know which of its methods are provided by the SO API" do
    klass = Class.new(StackExchange::StackOverflow::Base) do
      setup_delegators *%w[foo bar baz]
    end

    klass.api_methods.should == %w[foo bar baz]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pilha-0.2.2 spec/pilha/stack_overflow/base_spec.rb