minitest-matchers 1.4.0 → 1.4.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 +13 -5
- data/Gemfile.lock +1 -1
- data/History.txt +6 -0
- data/README.md +5 -5
- data/VERSION +1 -1
- data/lib/minitest/matchers.rb +2 -6
- metadata +7 -7
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,15 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 | 
            -
             | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
             | 
| 2 | 
            +
            !binary "U0hBMQ==":
         | 
| 3 | 
            +
              metadata.gz: !binary |-
         | 
| 4 | 
            +
                NzQ3OTBlMmQ4MWUyMmY1MDY2NDY1N2VhYWMzNzlkNDAzNjc0OWYwNg==
         | 
| 5 | 
            +
              data.tar.gz: !binary |-
         | 
| 6 | 
            +
                MDliOTI1MDRmMzhiNWYzNGM0OTI3Mjk3MWNhNDIyYjM3NmIwZmVmYg==
         | 
| 5 7 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
             | 
| 8 | 
            +
              metadata.gz: !binary |-
         | 
| 9 | 
            +
                YzFmOWEyMGZjMTIwM2MzMDU3MGJjYmFkMTgyMGNlNzY3YTRmN2FjOGFmM2Jj
         | 
| 10 | 
            +
                N2IwNTc4NzJiYzkyOTM4M2Y0ODI0YzQ1ZGQ3M2JiY2U0NzY3ZGZjNzYyNzdj
         | 
| 11 | 
            +
                YTBlZTYzMjdiOTIxZDNlZWYwZjgwNjBiNzRlY2JhODM1ODU4Nzc=
         | 
| 12 | 
            +
              data.tar.gz: !binary |-
         | 
| 13 | 
            +
                MjNhNTExM2NlMzUxMGU5M2QzYWJiYTNlYjZhZDM4ZGY0NTkwZTA2MDIxMGE4
         | 
| 14 | 
            +
                ODdmYmU4ZmRiYzM5YzkwMzYyYjMxMTJiMDAxZWQ5YzQ3M2FhZjllNDFiYzhh
         | 
| 15 | 
            +
                ZGY3MGFkMmJkNzFiNDVkNDVlMWMwODBiM2YxYjE5MzlmYWJhNTk=
         | 
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/History.txt
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | @@ -26,7 +26,7 @@ For use with Rails check out (ValidAttribute + Capybara): | |
| 26 26 |  | 
| 27 27 | 
             
            * Enables you to use existing matcher classes from projects like
         | 
| 28 28 | 
             
              valid\_attribute and capybara
         | 
| 29 | 
            -
            * Can be used both in  | 
| 29 | 
            +
            * Can be used both in Minitest::Test & Minitest::Spec
         | 
| 30 30 |  | 
| 31 31 | 
             
            ## Synopsis
         | 
| 32 32 |  | 
| @@ -46,7 +46,7 @@ end | |
| 46 46 |  | 
| 47 47 | 
             
            # Using minitest/unit
         | 
| 48 48 |  | 
| 49 | 
            -
            class PostTest <  | 
| 49 | 
            +
            class PostTest < Minitest::Test
         | 
| 50 50 | 
             
              include ValidAttribute::Method
         | 
| 51 51 |  | 
| 52 52 | 
             
              def test_validations
         | 
| @@ -93,8 +93,8 @@ You can also register matcher so that it works similar to built-in | |
| 93 93 | 
             
            assertions and expectations. Note subject must be the first argument in assertion.
         | 
| 94 94 |  | 
| 95 95 | 
             
            ```ruby
         | 
| 96 | 
            -
             | 
| 97 | 
            -
             | 
| 96 | 
            +
            Minitest::Test.register_matcher HaveContent, :have_content
         | 
| 97 | 
            +
            Minitest::Test.register_matcher :have_selector, :have_selector
         | 
| 98 98 |  | 
| 99 99 | 
             
            assert_have_content page, "Hello"
         | 
| 100 100 | 
             
            assert_have_selector page, :xpath, "//table/tr"
         | 
| @@ -105,7 +105,7 @@ page.must_have_selector :xpath, "//table/tr" | |
| 105 105 |  | 
| 106 106 | 
             
            ## Requirements
         | 
| 107 107 |  | 
| 108 | 
            -
            * `minitest  | 
| 108 | 
            +
            * `minitest ~> 5.0`
         | 
| 109 109 |  | 
| 110 110 | 
             
            ## Install
         | 
| 111 111 |  | 
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            1.4. | 
| 1 | 
            +
            1.4.1
         | 
    
        data/lib/minitest/matchers.rb
    CHANGED
    
    | @@ -144,9 +144,9 @@ class Minitest::Test | |
| 144 144 | 
             
              #     # ...
         | 
| 145 145 | 
             
              #   end
         | 
| 146 146 | 
             
              #
         | 
| 147 | 
            -
              #   Minitest:: | 
| 147 | 
            +
              #   Minitest::Test.register_matcher HaveContent, :have_content
         | 
| 148 148 | 
             
              #
         | 
| 149 | 
            -
              #   class MyTest < Test | 
| 149 | 
            +
              #   class MyTest < Minitest::Test
         | 
| 150 150 | 
             
              #     def test_index
         | 
| 151 151 | 
             
              #       visit "/"
         | 
| 152 152 | 
             
              #       assert_have_content page, "Hello"
         | 
| @@ -196,7 +196,3 @@ class Minitest::Test | |
| 196 196 | 
             
                Object.infect_an_assertion :"refute_#{name}", :"wont_#{exp_name}", true
         | 
| 197 197 | 
             
              end
         | 
| 198 198 | 
             
            end
         | 
| 199 | 
            -
             | 
| 200 | 
            -
            class Minitest::Spec # :nodoc:
         | 
| 201 | 
            -
              include Minitest::Matchers
         | 
| 202 | 
            -
            end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: minitest-matchers
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 1.4. | 
| 4 | 
            +
              version: 1.4.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Wojciech Mach
         | 
| @@ -9,7 +9,7 @@ authors: | |
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date: 2013- | 
| 12 | 
            +
            date: 2013-10-08 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies:
         | 
| 14 14 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 15 15 | 
             
              name: minitest
         | 
| @@ -29,14 +29,14 @@ dependencies: | |
| 29 29 | 
             
              name: rake
         | 
| 30 30 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 31 31 | 
             
                requirements:
         | 
| 32 | 
            -
                - - '>='
         | 
| 32 | 
            +
                - - ! '>='
         | 
| 33 33 | 
             
                  - !ruby/object:Gem::Version
         | 
| 34 34 | 
             
                    version: '0'
         | 
| 35 35 | 
             
              type: :development
         | 
| 36 36 | 
             
              prerelease: false
         | 
| 37 37 | 
             
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 38 38 | 
             
                requirements:
         | 
| 39 | 
            -
                - - '>='
         | 
| 39 | 
            +
                - - ! '>='
         | 
| 40 40 | 
             
                  - !ruby/object:Gem::Version
         | 
| 41 41 | 
             
                    version: '0'
         | 
| 42 42 | 
             
            description: Adds support for RSpec-style matchers
         | 
| @@ -72,17 +72,17 @@ require_paths: | |
| 72 72 | 
             
            - lib
         | 
| 73 73 | 
             
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 74 74 | 
             
              requirements:
         | 
| 75 | 
            -
              - - '>='
         | 
| 75 | 
            +
              - - ! '>='
         | 
| 76 76 | 
             
                - !ruby/object:Gem::Version
         | 
| 77 77 | 
             
                  version: '0'
         | 
| 78 78 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 79 79 | 
             
              requirements:
         | 
| 80 | 
            -
              - - '>='
         | 
| 80 | 
            +
              - - ! '>='
         | 
| 81 81 | 
             
                - !ruby/object:Gem::Version
         | 
| 82 82 | 
             
                  version: '0'
         | 
| 83 83 | 
             
            requirements: []
         | 
| 84 84 | 
             
            rubyforge_project: minitest-matchers
         | 
| 85 | 
            -
            rubygems_version: 2. | 
| 85 | 
            +
            rubygems_version: 2.1.5
         | 
| 86 86 | 
             
            signing_key: 
         | 
| 87 87 | 
             
            specification_version: 4
         | 
| 88 88 | 
             
            summary: Adds support for RSpec-style matchers
         |