Sha256: 115ac142415e8865d34fb745b7fecc7dc2b0cc072d7c66f82601d9a3a076f564

Contents?: true

Size: 508 Bytes

Versions: 15

Compression:

Stored size: 508 Bytes

Contents

# encoding: utf-8

class Nanoc::Extra::VCSTest < Nanoc::TestCase

  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

15 entries across 15 versions & 1 rubygems

Version Path
nanoc-3.7.4 test/extra/test_vcs.rb
nanoc-3.7.3 test/extra/test_vcs.rb
nanoc-3.7.2 test/extra/test_vcs.rb
nanoc-3.7.1 test/extra/test_vcs.rb
nanoc-3.7.0 test/extra/test_vcs.rb
nanoc-3.6.11 test/extra/test_vcs.rb
nanoc-3.6.10 test/extra/test_vcs.rb
nanoc-3.6.9 test/extra/test_vcs.rb
nanoc-3.6.8 test/extra/test_vcs.rb
nanoc-3.6.7 test/extra/test_vcs.rb
nanoc-3.6.6 test/extra/test_vcs.rb
nanoc-3.6.5 test/extra/test_vcs.rb
nanoc-3.6.4 test/extra/test_vcs.rb
nanoc-3.6.3 test/extra/test_vcs.rb
nanoc-3.6.2 test/extra/test_vcs.rb