Sha256: 2108da229b41ee7b17c7b039dcf7f2b07d14f28e0144dcbbc33cca08c45dc26c

Contents?: true

Size: 547 Bytes

Versions: 17

Compression:

Stored size: 547 Bytes

Contents

# encoding: utf-8

class Nanoc::Extra::VCSTest < MiniTest::Unit::TestCase

  include Nanoc::TestHelpers

  def test_named
    assert_nil(Nanoc::Extra::VCS.named(:lkasjdlkfjlkasdfkj))

    refute_nil(Nanoc::Extra::VCS.named(:svn))
    refute_nil(Nanoc::Extra::VCS.named(:subversion))
  end

  def test_not_implemented
    vcs = Nanoc::Extra::VCS.new

    assert_raises(NotImplementedError) { vcs.add('x')       }
    assert_raises(NotImplementedError) { vcs.remove('x')    }
    assert_raises(NotImplementedError) { vcs.move('x', 'y') }
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
nanoc-3.6.1 test/extra/test_vcs.rb
nanoc-3.6.0 test/extra/test_vcs.rb
nanoc-3.5.0 test/extra/test_vcs.rb
nanoc-3.5.0b2 test/extra/test_vcs.rb
nanoc-3.5.0b1 test/extra/test_vcs.rb
nanoc-3.4.3 test/extra/test_vcs.rb
nanoc-3.4.2 test/extra/test_vcs.rb
nanoc-3.4.1 test/extra/test_vcs.rb
nanoc-3.4.0 test/extra/test_vcs.rb
nanoc-3.3.7 test/extra/test_vcs.rb
nanoc-3.3.6 test/extra/test_vcs.rb
nanoc-3.3.5 test/extra/test_vcs.rb
nanoc-3.3.4 test/extra/test_vcs.rb
nanoc-3.3.3 test/extra/test_vcs.rb
nanoc-3.3.2 test/extra/test_vcs.rb
nanoc-3.3.1 test/extra/test_vcs.rb
nanoc-3.3.0 test/extra/test_vcs.rb