File: test.rb

package info (click to toggle)
ruby-shoulda 3.0.0~beta2-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 120 kB
  • sloc: ruby: 100; makefile: 2
file content (31 lines) | stat: -rw-r--r-- 847 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# This file must be (`ruby debian/test.rb`) once the libshoulda-ruby* packages
# are installed to make some sanity checks, and to verify that they work, at least
# at a basic level.
require 'test/unit'
require 'shoulda'

class NiceTest < Test::Unit::TestCase

  context "shoulda" do

    should 'just work' do
      # is this test runs at all it already works :)
      assert true
    end

    context "in Debian" do

      should 'move proc_extensions.rb out of top level ruby library dir' do
        assert !File.exists?('/usr/lib/ruby/1.8/proc_extensions.rb')
        assert File.exists?('/usr/lib/ruby/1.8/shoulda/proc_extensions.rb')
      end

      should 'install RDOC documentation' do
        assert File.exists?('/usr/share/doc/libshoulda-ruby/rdoc/index.html'), 'is libshoulda-ruby package installed?'
      end

    end

  end
  
end