Sha256: b0a6eb74f78845ce54bfe01e7a400895f4e3e2a65e9f20cf7a73b36d88131db6

Contents?: true

Size: 674 Bytes

Versions: 25

Compression:

Stored size: 674 Bytes

Contents

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

class BlobTest < Test::Unit::TestCase
  include Octopi
  
  def setup
    fake_everything
  end

  context Blob do
    should "find a blob" do
      blob = Blob.find(:user => "fcoury", :repo => "octopi", :sha => "f6609209c3ac0badd004512d318bfaa508ea10ae")
      assert_not_nil blob
      assert blob.is_a?(String)
    end

    # Can't grab real data for this yet, Github is throwing a 500 on this request.
    # should "find a file for a blob" do
    #  assert_not_nil Blob.find(:user => "fcoury", :repo => "octopi", :sha => "f6609209c3ac0badd004512d318bfaa508ea10ae", :path => "lib/octopi.rb")
    # end
  end
end

Version data entries

25 entries across 25 versions & 4 rubygems

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