Sha256: e1a7850cabc77d8c87ce22caebc839ad75bbb380a35c5ab98f78b921e4c70200

Contents?: true

Size: 486 Bytes

Versions: 13

Compression:

Stored size: 486 Bytes

Contents

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

class BaseTest < Test::Unit::TestCase
  class SparseUser < Octopi::Base
    include Octopi::Resource
    
    attr_accessor :some_attribute
    
    find_path "/user/search/:query"
    resource_path "/user/show/:id"
  end
  
  def setup
    fake_everything
  end
  
  should "not raise an error if it doesn't know about the attributes that GitHub API provides" do
    assert_nothing_raised { SparseUser.find("radar") }
  end
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
octopi-0.4.5 test/base_test.rb
octopi-0.4.4 test/base_test.rb
octopi-0.4.2 test/base_test.rb
octopi-0.4.1 test/base_test.rb
octopi-0.4.0 test/base_test.rb
octopi-0.3.0 test/base_test.rb
dcuddeback-octopi-0.2.12 test/base_test.rb
dcuddeback-octopi-0.2.11 test/base_test.rb
dcuddeback-octopi-0.2.9 test/base_test.rb
dcuddeback-octopi-0.2.8 test/base_test.rb
devver-octopi-0.2.14 test/base_test.rb
tpitale-octopi-0.3.0 test/base_test.rb
octopi-0.2.8 test/base_test.rb