This file is indexed.

/usr/share/doc/ruby-minitest-shared-description/README.rdoc is in ruby-minitest-shared-description 1.0.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
= minitest-shared_description

minitest-shared_description adds support for shared specs and shared spec subclasses
to Minitest.  Minitest supports shared specs by default using plain ruby modules, but
does not support shared spec subclasses.  In addition to making it possible to share
subclasses, minitest-shared_desciption also provides a slightly nicer interface for
sharing specs.

= Installation

  gem install minitest-shared_description

= Source Code

Source code is available on GitHub at https://github.com/jeremyevans/minitest-shared_description

= Usage 

  require 'minitest/shared_description'

  SharedExamples = shared_description do
    # You can do regular specs
    it "should do something" do
      # something
    end

    # You can also have spec subclasses
    describe "nested specs" do
      # Called inside the before/after of the class that includes SharedExamples
      before {}
      after {}

      # Called inside the before/after of the class that includes SharedExamples
      # and the before/after in this class
      it "should do something else" do
        # something
      end
    end
  end

  describe "something" do
    include SharedExamples
  end

You can also have shared descriptions that are included in other shared descriptions:

  SharedExample1 = shared_description do
    describe "nested specs 1" do
      before {}
      after {}
      it "should do something" do end
    end
  end

  SharedExample2 = shared_description do
    describe "nested specs 2" do
      before {}
      after {}
      it "should do something else" do end
    end
  end

  SharedExamples = shared_description do
    # Include shared description in shared description block
    include SharedExample1

    describe "nested shared description use" do
      # Include shared description in shared description class
      include SharedExample2
    end
  end

= License

MIT

= Author

Jeremy Evans <code@jeremyevans.net>