Sha256: d6fb8be7494d652f398c66e947f1df0779271ed986d86d2c8f1d18e32739d310

Contents?: true

Size: 961 Bytes

Versions: 17

Compression:

Stored size: 961 Bytes

Contents

class Test::Unit::TestCase
  class << self
    def should_have_major_version(version)
      should "have major version of #{version}" do 
        assert_equal version, @juwelier.major_version
      end
    end
    
    def should_have_minor_version(version)
      should "have minor version of #{version}" do
        assert_equal version, @juwelier.minor_version
      end
    end
    
    def should_have_patch_version(version)
      should "have patch version of #{version}" do
        assert_equal version, @juwelier.patch_version
      end
    end
    
    def should_be_version(version)
      should "be version #{version}" do
        assert_equal version, @juwelier.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

17 entries across 17 versions & 1 rubygems

Version Path
juwelier-2.4.9 test/shoulda_macros/juwelier_macros.rb
juwelier-2.4.7 test/shoulda_macros/juwelier_macros.rb
juwelier-2.4.6 test/shoulda_macros/juwelier_macros.rb
juwelier-2.4.5 test/shoulda_macros/juwelier_macros.rb
juwelier-2.4.4 test/shoulda_macros/juwelier_macros.rb
juwelier-2.4.1 test/shoulda_macros/juwelier_macros.rb
juwelier-2.4.0 test/shoulda_macros/juwelier_macros.rb
juwelier-2.3.6 test/shoulda_macros/juwelier_macros.rb
juwelier-2.3.4 test/shoulda_macros/juwelier_macros.rb
juwelier-2.3.2 test/shoulda_macros/juwelier_macros.rb
juwelier-2.3.0 test/shoulda_macros/juwelier_macros.rb
juwelier-2.2.3 test/shoulda_macros/juwelier_macros.rb
juwelier-2.2.1 test/shoulda_macros/juwelier_macros.rb
juwelier-2.1.3 test/shoulda_macros/juwelier_macros.rb
juwelier-2.1.2 test/shoulda_macros/juwelier_macros.rb
juwelier-2.1.1 test/shoulda_macros/juwelier_macros.rb
juwelier-2.1.0 test/shoulda_macros/juwelier_macros.rb