Sha256: 62f8e19cdd2236c8147ea0fd5551305c9e02e29acbc3aafb380e0861d42eb6d0

Contents?: true

Size: 438 Bytes

Versions: 6

Compression:

Stored size: 438 Bytes

Contents

# Tests for octopi core functionality go here.
require File.join(File.dirname(__FILE__), 'test_helper')

class TagTest < Test::Unit::TestCase
  include Octopi
  
  def setup
    fake_everything
  end
  
  context Tag do
    should "be able to find all tags" do
      tags = Tag.all(:user => "fcoury", :repository => "octopi")
      assert_not_nil tags
      assert_equal 9, tags.size
      assert tags.first.is_a?(Tag)
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
octopi-0.4.5 test/tag_test.rb
octopi-0.4.4 test/tag_test.rb
octopi-0.4.2 test/tag_test.rb
octopi-0.4.1 test/tag_test.rb
octopi-0.4.0 test/tag_test.rb
octopi-0.3.0 test/tag_test.rb