Sha256: fcbdb63ca63b488b650d1c12258767c55fd30af5f8f29254497380dcf6aa24b3

Contents?: true

Size: 360 Bytes

Versions: 3

Compression:

Stored size: 360 Bytes

Contents

require 'spec_helper'

describe Github::ApiFactory, :type => :base do

  context '#new' do
    it 'throws error if klass type is ommitted' do
      expect { described_class.new nil }.to raise_error(ArgumentError)
    end

    it 'instantiates a new object' do
      described_class.new('Repos').should be_a Github::Repos
    end
  end
end # Github::ApiFactory

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
github_api-0.4.6 spec/github/api_factory_spec.rb
github_api-0.4.5 spec/github/api_factory_spec.rb
github_api-0.4.4 spec/github/api_factory_spec.rb