minitest-bang 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
 - data/lib/minitest/bang.rb +4 -3
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,15 +1,15 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            !binary "U0hBMQ==":
         
     | 
| 
       3 
3 
     | 
    
         
             
              metadata.gz: !binary |-
         
     | 
| 
       4 
     | 
    
         
            -
                 
     | 
| 
      
 4 
     | 
    
         
            +
                ZDk3MTM4MGY4MjBlY2MzMmE5OWIwNzA1YjU4NTMwMzkxOGM4ZTI5Ng==
         
     | 
| 
       5 
5 
     | 
    
         
             
              data.tar.gz: !binary |-
         
     | 
| 
       6 
     | 
    
         
            -
                 
     | 
| 
      
 6 
     | 
    
         
            +
                MGNlN2NhNThiZDZlYTgwYzY1ZjQ2YjA0OTQ0ZmI5YWJiYjE2ODBlMg==
         
     | 
| 
       7 
7 
     | 
    
         
             
            SHA512:
         
     | 
| 
       8 
8 
     | 
    
         
             
              metadata.gz: !binary |-
         
     | 
| 
       9 
     | 
    
         
            -
                 
     | 
| 
       10 
     | 
    
         
            -
                 
     | 
| 
       11 
     | 
    
         
            -
                 
     | 
| 
      
 9 
     | 
    
         
            +
                OGVmNWM5MGU5MGZlZTU1OWVlOTIwNTZhYjc3NjM5YzgwODdiYThjYzRhNmI0
         
     | 
| 
      
 10 
     | 
    
         
            +
                ZWZkZTE3OWYxYTJkYjE3MDU3ZTBhMzUxMmVmYTY0ZjNiYzg2Mzg4M2VmYjQy
         
     | 
| 
      
 11 
     | 
    
         
            +
                NDgyY2QwZDg5ZTM0MmYxZDdhNzhkZDYxZDY1NGVmOGYyN2VmMjA=
         
     | 
| 
       12 
12 
     | 
    
         
             
              data.tar.gz: !binary |-
         
     | 
| 
       13 
     | 
    
         
            -
                 
     | 
| 
       14 
     | 
    
         
            -
                 
     | 
| 
       15 
     | 
    
         
            -
                 
     | 
| 
      
 13 
     | 
    
         
            +
                ODhlNjlkZmEzZmVjNDYyM2ZhZTY2ZTkxYTg4ZGI4MmYzZDJkNjQ2MjI5NDM4
         
     | 
| 
      
 14 
     | 
    
         
            +
                ZjY4NGUyMmRjMTYzZDExMzQxNWNmMjExMjU2NzFkMGExY2ExYTY5NjRjN2M3
         
     | 
| 
      
 15 
     | 
    
         
            +
                MDdlMjg1ZGZlODAzYThlMDI1OTVkYzhiN2JkODg0N2MwNjVlZWI=
         
     | 
    
        data/lib/minitest/bang.rb
    CHANGED
    
    | 
         @@ -1,4 +1,5 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require 'set'
         
     | 
| 
      
 2 
     | 
    
         
            +
            require 'minitest/spec'
         
     | 
| 
       2 
3 
     | 
    
         | 
| 
       3 
4 
     | 
    
         
             
            module Minitest::Spec::DSL
         
     | 
| 
       4 
5 
     | 
    
         
             
              def bangs
         
     | 
| 
         @@ -13,7 +14,7 @@ module Minitest::Spec::DSL 
     | 
|
| 
       13 
14 
     | 
    
         
             
              end
         
     | 
| 
       14 
15 
     | 
    
         
             
            end
         
     | 
| 
       15 
16 
     | 
    
         | 
| 
       16 
     | 
    
         
            -
            module  
     | 
| 
      
 17 
     | 
    
         
            +
            module Bang
         
     | 
| 
       17 
18 
     | 
    
         
             
              def before_setup
         
     | 
| 
       18 
19 
     | 
    
         
             
                super
         
     | 
| 
       19 
20 
     | 
    
         
             
                self.class.bangs.each do |bang|
         
     | 
| 
         @@ -24,11 +25,11 @@ end 
     | 
|
| 
       24 
25 
     | 
    
         | 
| 
       25 
26 
     | 
    
         
             
            if defined?(MiniTest::Test)
         
     | 
| 
       26 
27 
     | 
    
         
             
              class MiniTest::Test
         
     | 
| 
       27 
     | 
    
         
            -
                include  
     | 
| 
      
 28 
     | 
    
         
            +
                include Bang
         
     | 
| 
       28 
29 
     | 
    
         
             
              end
         
     | 
| 
       29 
30 
     | 
    
         
             
            end
         
     | 
| 
       30 
31 
     | 
    
         
             
            if defined?(MiniTest::Unit::TestCase)
         
     | 
| 
       31 
32 
     | 
    
         
             
              class MiniTest::Unit::TestCase
         
     | 
| 
       32 
     | 
    
         
            -
                include  
     | 
| 
      
 33 
     | 
    
         
            +
                include Bang
         
     | 
| 
       33 
34 
     | 
    
         
             
              end
         
     | 
| 
       34 
35 
     | 
    
         
             
            end
         
     |