Sha256: f27cac38ed549d6f11b59119ee8f903cd69785027b183b9b5ae5c703cec8d14e

Contents?: true

Size: 463 Bytes

Versions: 25

Compression:

Stored size: 463 Bytes

Contents

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

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

  context Branch do
    should "Find all branches for a repository" do
      assert_not_nil Branch.all(:user => "fcoury", :name => "octopi")
    end
    
    should "Be able to find a specific branch" do
      assert_not_nil Branch.all(:user => "fcoury", :name => "octopi").find("lazy")
    end
  end
end

Version data entries

25 entries across 25 versions & 4 rubygems

Version Path
octopi-0.2.6 test/branch_test.rb
octopi-0.2.5 test/branch_test.rb
octopi-0.2.4 test/branch_test.rb
octopi-0.2.2 test/branch_test.rb
octopi-0.2.1 test/branch_test.rb