Sha256: 66a8dfeec899347254d327d7cd63d8e6b3013e5949c0535a4b2c680ff63056a3

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

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

class TreeTest < Test::Unit::TestCase
  include Octopi

  def setup
    fake_everything
  end
  
  should "be able to find a tree set" do
    shared_options = { :user => "fcoury", :repo => "octopi"}
    branch = Branch.all(shared_options).detect { |b| b.name == "master" }
    assert Tree.find(shared_options.merge!(:sha => branch.sha)).is_a?(TreeSet)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
octopi-0.4.5 test/tree_test.rb