Sha256: 5a9e062ad777484a1073633270d04415cb5ffffa7122e31547d63a8c0a22d653

Contents?: true

Size: 957 Bytes

Versions: 167

Compression:

Stored size: 957 Bytes

Contents

class Test::Unit::TestCase
  class << self
    def should_have_major_version(version)
      should "have major version of #{version}" do 
        assert_equal version, @jeweler.major_version
      end
    end
    
    def should_have_minor_version(version)
      should "have minor version of #{version}" do
        assert_equal version, @jeweler.minor_version
      end
    end
    
    def should_have_patch_version(version)
      should "have patch version of #{version}" do
        assert_equal version, @jeweler.patch_version
      end
    end
    
    def should_be_version(version)
      should "be version #{version}" do
        assert_equal version, @jeweler.version
      end
    end
    
    def should_bump_version(major, minor, patch)
      version = "#{major}.#{minor}.#{patch}"
      should_have_major_version major
      should_have_minor_version minor
      should_have_patch_version patch
      should_be_version version
    end
  end
end

Version data entries

167 entries across 113 versions & 15 rubygems

Version Path
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.6.1 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.6.0 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.5.4 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.5.3 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.5.3 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.5.2 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.5.1 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.5.0 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.5.0 dirty_history/ruby/1.9.1/gems/dirty_history-0.2.0/dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.5.0 dirty_history/ruby/1.9.1/gems/jeweler-1.5.2/test/shoulda_macros/jeweler_macros.rb
dirty_history-0.5.0 dirty_history/ruby/1.9.1/gems/jeweler-1.6.4/test/shoulda_macros/jeweler_macros.rb