sixarm_ruby_minitest_extensions 1.0.0
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 +7 -0
 - checksums.yaml.gz.sig +0 -0
 - data.tar.gz.sig +1 -0
 - data/.gemtest +0 -0
 - data/CONTRIBUTING.md +28 -0
 - data/README.md +114 -0
 - data/Rakefile +8 -0
 - data/VERSION +1 -0
 - data/lib/sixarm_ruby_minitest_extensions.rb +10 -0
 - data/lib/sixarm_ruby_minitest_extensions/assertions.rb +34 -0
 - data/lib/sixarm_ruby_minitest_extensions/expectations.rb +14 -0
 - data/test/sixarm_ruby_minitest_extensions_test.rb +10 -0
 - data/test/sixarm_ruby_minitest_extensions_test/assertions_test.rb +55 -0
 - data/test/sixarm_ruby_minitest_extensions_test/expectations_test.rb +55 -0
 - metadata +91 -0
 - metadata.gz.sig +0 -0
 
    
        checksums.yaml
    ADDED
    
    | 
         @@ -0,0 +1,7 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            ---
         
     | 
| 
      
 2 
     | 
    
         
            +
            SHA1:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: e1bb2a549e2e6b26afca17090431e84647646628
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: b58478556f4fcc246ee61e24df030ed51e595261
         
     | 
| 
      
 5 
     | 
    
         
            +
            SHA512:
         
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 8aeab7b072aa479addfdee276cb63daf71b6cc04af42f32c3be939f23cc92947e9aa2c935b5035c399fba4fc77603b97ce57c9a7b2e2f0eb53da3ff5f9fb5ab4
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 2b738723f196e345d47fb4ed13cb01234f921ace9df419d563c2431626e8481fecb2ac70785ea143735b7bdb844ed6acce89aadfd494a31162eba35aca85facd
         
     | 
    
        checksums.yaml.gz.sig
    ADDED
    
    | 
         Binary file 
     | 
    
        data.tar.gz.sig
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            7��So14���\g���O����g���ݓ*�X^͚)������ب��/M�w�0���ع��xZ?�L���<Gw	��C�jϷsd���8$�s}b��Cr�+�����~(4B`���_-��3�eF
         
     | 
    
        data/.gemtest
    ADDED
    
    | 
         
            File without changes
         
     | 
    
        data/CONTRIBUTING.md
    ADDED
    
    | 
         @@ -0,0 +1,28 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # Contributing
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            Thank you for contributing!
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            If you would like to contribute a donation, an easy way is to use PayPal to sixarm@sixarm.com.
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            If you would like to contribute help, the next section is for you.
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            ## Contributing to the source
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            We love pull requests for improvments to the source code and documentation.
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            There are three easy steps:
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
            1. Fork the repo. 
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
              * Before you do any work please run our existing tests to make sure the code runs cleanly.
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
            2. Work as you like. 
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
               * Please create tests. This helps us know that all your code runs cleanly.
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
            3. Push to your fork and submit a pull request.
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
               * We'll take a look as soon as we can; this is typically within a business day.
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
            Thank you again!
         
     | 
    
        data/README.md
    ADDED
    
    | 
         @@ -0,0 +1,114 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # SixArm.com » Ruby » <br> Minitest Extensions
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            * Doc: <http://sixarm.com/sixarm_ruby_minitest_extensions/doc>
         
     | 
| 
      
 4 
     | 
    
         
            +
            * Gem: <http://rubygems.org/gems/sixarm_ruby_minitest_extensions>
         
     | 
| 
      
 5 
     | 
    
         
            +
            * Repo: <http://github.com/sixarm/sixarm_ruby_minitest_extensions>
         
     | 
| 
      
 6 
     | 
    
         
            +
            * Email: Joel Parker Henderson, <joel@sixarm.com>
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            ## Introduction
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            Minitest extensions for our common cases:
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            Assert:
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
               * assert_true
         
     | 
| 
      
 15 
     | 
    
         
            +
               * assert_false
         
     | 
| 
      
 16 
     | 
    
         
            +
               * assert_nil  
         
     | 
| 
      
 17 
     | 
    
         
            +
               * assert_respond_to_all
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
            Spec:
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
               * must_be_true
         
     | 
| 
      
 22 
     | 
    
         
            +
               * must_be_false
         
     | 
| 
      
 23 
     | 
    
         
            +
               * must_be_nil  
         
     | 
| 
      
 24 
     | 
    
         
            +
               * must_respond_to_all
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
            Based on Minitest.
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
            For docs go to <http://sixarm.com/sixarm_ruby_minitest_extensions/doc>
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
      
 30 
     | 
    
         
            +
            Want to help? We're happy to get pull requests.
         
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
            ## Install quickstart
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
            Install:
         
     | 
| 
      
 36 
     | 
    
         
            +
             
     | 
| 
      
 37 
     | 
    
         
            +
                gem install sixarm_ruby_minitest_extensions
         
     | 
| 
      
 38 
     | 
    
         
            +
             
     | 
| 
      
 39 
     | 
    
         
            +
            Bundler:
         
     | 
| 
      
 40 
     | 
    
         
            +
             
     | 
| 
      
 41 
     | 
    
         
            +
                gem "sixarm_ruby_minitest_extensions", "~>1.0.0"	
         
     | 
| 
      
 42 
     | 
    
         
            +
             
     | 
| 
      
 43 
     | 
    
         
            +
            Require:
         
     | 
| 
      
 44 
     | 
    
         
            +
             
     | 
| 
      
 45 
     | 
    
         
            +
                require "sixarm_ruby_minitest_extensions"
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
             
     | 
| 
      
 48 
     | 
    
         
            +
            ## Install with security (optional)
         
     | 
| 
      
 49 
     | 
    
         
            +
             
     | 
| 
      
 50 
     | 
    
         
            +
            To enable high security for all our gems:
         
     | 
| 
      
 51 
     | 
    
         
            +
             
     | 
| 
      
 52 
     | 
    
         
            +
                wget http://sixarm.com/sixarm.pem
         
     | 
| 
      
 53 
     | 
    
         
            +
                gem cert --add sixarm.pem
         
     | 
| 
      
 54 
     | 
    
         
            +
                gem sources --add http://sixarm.com
         
     | 
| 
      
 55 
     | 
    
         
            +
             
     | 
| 
      
 56 
     | 
    
         
            +
            To install with high security:
         
     | 
| 
      
 57 
     | 
    
         
            +
             
     | 
| 
      
 58 
     | 
    
         
            +
                gem install sixarm_ruby_minitest_extensions --test --trust-policy HighSecurity
         
     | 
| 
      
 59 
     | 
    
         
            +
             
     | 
| 
      
 60 
     | 
    
         
            +
             
     | 
| 
      
 61 
     | 
    
         
            +
            ## Examples
         
     | 
| 
      
 62 
     | 
    
         
            +
             
     | 
| 
      
 63 
     | 
    
         
            +
            Example Minitest spec:
         
     | 
| 
      
 64 
     | 
    
         
            +
             
     | 
| 
      
 65 
     | 
    
         
            +
                describe Foo do
         
     | 
| 
      
 66 
     | 
    
         
            +
                  it "validates" do
         
     | 
| 
      
 67 
     | 
    
         
            +
                    f = Foo.new
         
     | 
| 
      
 68 
     | 
    
         
            +
            	f.valid?.must_be_true
         
     | 
| 
      
 69 
     | 
    
         
            +
                  end
         
     | 
| 
      
 70 
     | 
    
         
            +
                end
         
     | 
| 
      
 71 
     | 
    
         
            +
             
     | 
| 
      
 72 
     | 
    
         
            +
            Example Minitest spec:
         
     | 
| 
      
 73 
     | 
    
         
            +
             
     | 
| 
      
 74 
     | 
    
         
            +
                describe Foo do
         
     | 
| 
      
 75 
     | 
    
         
            +
                  it "is colorful" do
         
     | 
| 
      
 76 
     | 
    
         
            +
                    f = Foo.new
         
     | 
| 
      
 77 
     | 
    
         
            +
            	f.must_respond_to_all [:red, :green, :blue]
         
     | 
| 
      
 78 
     | 
    
         
            +
                  end
         
     | 
| 
      
 79 
     | 
    
         
            +
                end
         
     | 
| 
      
 80 
     | 
    
         
            +
             
     | 
| 
      
 81 
     | 
    
         
            +
             
     | 
| 
      
 82 
     | 
    
         
            +
            ## Changes
         
     | 
| 
      
 83 
     | 
    
         
            +
             
     | 
| 
      
 84 
     | 
    
         
            +
            * 2013-06-03 1.0.1 Update for Minitest 5.x
         
     | 
| 
      
 85 
     | 
    
         
            +
            * 2013-06-02 1.0.0 Publish
         
     | 
| 
      
 86 
     | 
    
         
            +
             
     | 
| 
      
 87 
     | 
    
         
            +
             
     | 
| 
      
 88 
     | 
    
         
            +
            ## License
         
     | 
| 
      
 89 
     | 
    
         
            +
             
     | 
| 
      
 90 
     | 
    
         
            +
            You may choose any of these open source licenses:
         
     | 
| 
      
 91 
     | 
    
         
            +
             
     | 
| 
      
 92 
     | 
    
         
            +
              * Apache License
         
     | 
| 
      
 93 
     | 
    
         
            +
              * BSD License
         
     | 
| 
      
 94 
     | 
    
         
            +
              * CreativeCommons License, Non-commercial Share Alike
         
     | 
| 
      
 95 
     | 
    
         
            +
              * GNU General Public License Version 2 (GPL 2)
         
     | 
| 
      
 96 
     | 
    
         
            +
              * GNU Lesser General Public License (LGPL)
         
     | 
| 
      
 97 
     | 
    
         
            +
              * MIT License
         
     | 
| 
      
 98 
     | 
    
         
            +
              * Perl Artistic License
         
     | 
| 
      
 99 
     | 
    
         
            +
              * Ruby License
         
     | 
| 
      
 100 
     | 
    
         
            +
             
     | 
| 
      
 101 
     | 
    
         
            +
            The software is provided "as is", without warranty of any kind, 
         
     | 
| 
      
 102 
     | 
    
         
            +
            express or implied, including but not limited to the warranties of 
         
     | 
| 
      
 103 
     | 
    
         
            +
            merchantability, fitness for a particular purpose and noninfringement. 
         
     | 
| 
      
 104 
     | 
    
         
            +
             
     | 
| 
      
 105 
     | 
    
         
            +
            In no event shall the authors or copyright holders be liable for any 
         
     | 
| 
      
 106 
     | 
    
         
            +
            claim, damages or other liability, whether in an action of contract, 
         
     | 
| 
      
 107 
     | 
    
         
            +
            tort or otherwise, arising from, out of or in connection with the 
         
     | 
| 
      
 108 
     | 
    
         
            +
            software or the use or other dealings in the software.
         
     | 
| 
      
 109 
     | 
    
         
            +
             
     | 
| 
      
 110 
     | 
    
         
            +
            This license is for the included software that is created by SixArm;
         
     | 
| 
      
 111 
     | 
    
         
            +
            some of the included software may have its own licenses, copyrights, 
         
     | 
| 
      
 112 
     | 
    
         
            +
            authors, etc. and these do take precedence over the SixArm license.
         
     | 
| 
      
 113 
     | 
    
         
            +
             
     | 
| 
      
 114 
     | 
    
         
            +
            Copyright (c) 2005-2013 Joel Parker Henderson
         
     | 
    
        data/Rakefile
    ADDED
    
    
    
        data/VERSION
    ADDED
    
    | 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            1.0.0
         
     | 
| 
         @@ -0,0 +1,34 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # -*- coding: utf-8 -*-
         
     | 
| 
      
 2 
     | 
    
         
            +
            =begin rdoc
         
     | 
| 
      
 3 
     | 
    
         
            +
            Please see README
         
     | 
| 
      
 4 
     | 
    
         
            +
            =end
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            require 'minitest/autorun'
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            module Minitest::Assertions
         
     | 
| 
      
 9 
     | 
    
         
            +
            puts "Minitest::Assertions"
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
              ##
         
     | 
| 
      
 12 
     | 
    
         
            +
              # Fails unless +exp+ is true.
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
              def assert_true exp, msg = nil
         
     | 
| 
      
 15 
     | 
    
         
            +
                assert_same exp, true, msg
         
     | 
| 
      
 16 
     | 
    
         
            +
              end
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
              ##
         
     | 
| 
      
 19 
     | 
    
         
            +
              # Fails unless +exp+ is false.
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
              def assert_false exp, msg = nil
         
     | 
| 
      
 22 
     | 
    
         
            +
                assert_same exp, false, msg
         
     | 
| 
      
 23 
     | 
    
         
            +
              end
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
              ##
         
     | 
| 
      
 26 
     | 
    
         
            +
              # Fails unless +obj+ responds to each method in +meths+.
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
              def assert_respond_to_all obj, meths, msg = nil
         
     | 
| 
      
 29 
     | 
    
         
            +
                meths.each{|meth|
         
     | 
| 
      
 30 
     | 
    
         
            +
                  assert_respond_to obj, meth, msg
         
     | 
| 
      
 31 
     | 
    
         
            +
                }
         
     | 
| 
      
 32 
     | 
    
         
            +
              end
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
      
 34 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,14 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # -*- coding: utf-8 -*-
         
     | 
| 
      
 2 
     | 
    
         
            +
            =begin rdoc
         
     | 
| 
      
 3 
     | 
    
         
            +
            Please see README
         
     | 
| 
      
 4 
     | 
    
         
            +
            =end
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            require 'minitest/autorun'
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            module Minitest::Expectations
         
     | 
| 
      
 9 
     | 
    
         
            +
            puts "Minitest::Expectations"
         
     | 
| 
      
 10 
     | 
    
         
            +
              Object.infect_an_assertion :assert_true, :must_be_true, :reverse
         
     | 
| 
      
 11 
     | 
    
         
            +
              Object.infect_an_assertion :assert_false, :must_be_false, :reverse
         
     | 
| 
      
 12 
     | 
    
         
            +
              Object.infect_an_assertion :assert_respond_to_all, :must_respond_to_all, :reverse
         
     | 
| 
      
 13 
     | 
    
         
            +
            end
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
         @@ -0,0 +1,55 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # -*- coding: utf-8 -*-
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            describe "Minitest" do
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
              describe "Assertions" do
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
                describe "#assert_true" do
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
                  specify "true #=> success" do
         
     | 
| 
      
 10 
     | 
    
         
            +
                    assert_true(true).must_be_same_as true
         
     | 
| 
      
 11 
     | 
    
         
            +
                  end
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
                  specify "truthy but not true #=> failure" do
         
     | 
| 
      
 14 
     | 
    
         
            +
                    proc { 
         
     | 
| 
      
 15 
     | 
    
         
            +
                      assert_true(1)
         
     | 
| 
      
 16 
     | 
    
         
            +
                    }.must_raise MiniTest::Assertion
         
     | 
| 
      
 17 
     | 
    
         
            +
                  end
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
                end
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
                describe "#assert_false" do
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
                  specify "false #=> success" do
         
     | 
| 
      
 24 
     | 
    
         
            +
                    assert_false(false).must_be_same_as true
         
     | 
| 
      
 25 
     | 
    
         
            +
                  end
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
                  specify "falsey but not false #=> failure" do
         
     | 
| 
      
 28 
     | 
    
         
            +
                    proc { 
         
     | 
| 
      
 29 
     | 
    
         
            +
                      assert_false(nil)
         
     | 
| 
      
 30 
     | 
    
         
            +
                    }.must_raise MiniTest::Assertion
         
     | 
| 
      
 31 
     | 
    
         
            +
                  end
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
                end
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                describe "#assert_respond_to_all" do
         
     | 
| 
      
 36 
     | 
    
         
            +
             
     | 
| 
      
 37 
     | 
    
         
            +
                  describe "smoke test with some string methods" do
         
     | 
| 
      
 38 
     | 
    
         
            +
                    
         
     | 
| 
      
 39 
     | 
    
         
            +
                    it "works" do
         
     | 
| 
      
 40 
     | 
    
         
            +
                      assert_respond_to_all("foo", [:upcase, :downcase, :swapcase])
         
     | 
| 
      
 41 
     | 
    
         
            +
                    end
         
     | 
| 
      
 42 
     | 
    
         
            +
             
     | 
| 
      
 43 
     | 
    
         
            +
                    it "fails" do
         
     | 
| 
      
 44 
     | 
    
         
            +
                      proc { 
         
     | 
| 
      
 45 
     | 
    
         
            +
                        assert_respond_to_all("foo", [:upcase, :downcase, :INVALID])
         
     | 
| 
      
 46 
     | 
    
         
            +
                      }.must_raise MiniTest::Assertion
         
     | 
| 
      
 47 
     | 
    
         
            +
                    end
         
     | 
| 
      
 48 
     | 
    
         
            +
             
     | 
| 
      
 49 
     | 
    
         
            +
                  end
         
     | 
| 
      
 50 
     | 
    
         
            +
             
     | 
| 
      
 51 
     | 
    
         
            +
                end
         
     | 
| 
      
 52 
     | 
    
         
            +
             
     | 
| 
      
 53 
     | 
    
         
            +
              end
         
     | 
| 
      
 54 
     | 
    
         
            +
             
     | 
| 
      
 55 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,55 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # -*- coding: utf-8 -*-
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            describe "Minitest" do
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
              describe "Expectations" do
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
                describe "#must_be_true" do
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
                  specify "true #=> success" do
         
     | 
| 
      
 10 
     | 
    
         
            +
                    true.must_be_true
         
     | 
| 
      
 11 
     | 
    
         
            +
                  end
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
                  specify "truthy but not true #=> failure" do
         
     | 
| 
      
 14 
     | 
    
         
            +
                    proc {
         
     | 
| 
      
 15 
     | 
    
         
            +
                      1.must_be_true
         
     | 
| 
      
 16 
     | 
    
         
            +
                    }.must_raise MiniTest::Assertion
         
     | 
| 
      
 17 
     | 
    
         
            +
                  end
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
                end
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
                describe "#must_be_false" do
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
                  specify "false #=> success" do
         
     | 
| 
      
 24 
     | 
    
         
            +
                    false.must_be_false
         
     | 
| 
      
 25 
     | 
    
         
            +
                  end
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
                  specify "falsey but not false #=> failure" do
         
     | 
| 
      
 28 
     | 
    
         
            +
                    proc {
         
     | 
| 
      
 29 
     | 
    
         
            +
                      nil.must_be_false
         
     | 
| 
      
 30 
     | 
    
         
            +
                    }.must_raise MiniTest::Assertion
         
     | 
| 
      
 31 
     | 
    
         
            +
                  end
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
                end
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
      
 35 
     | 
    
         
            +
                describe "#must_respond_to_all" do
         
     | 
| 
      
 36 
     | 
    
         
            +
             
     | 
| 
      
 37 
     | 
    
         
            +
                  describe "smoke test with some string methods" do
         
     | 
| 
      
 38 
     | 
    
         
            +
                    
         
     | 
| 
      
 39 
     | 
    
         
            +
                    it "works" do
         
     | 
| 
      
 40 
     | 
    
         
            +
                      "foo".must_respond_to_all [:upcase, :downcase, :swapcase]
         
     | 
| 
      
 41 
     | 
    
         
            +
                    end
         
     | 
| 
      
 42 
     | 
    
         
            +
             
     | 
| 
      
 43 
     | 
    
         
            +
                    it "fails" do
         
     | 
| 
      
 44 
     | 
    
         
            +
                      proc { 
         
     | 
| 
      
 45 
     | 
    
         
            +
                        "foo".must_respond_to_all [:upcase, :downcase, :INVALID]
         
     | 
| 
      
 46 
     | 
    
         
            +
                      }.must_raise MiniTest::Assertion
         
     | 
| 
      
 47 
     | 
    
         
            +
                    end
         
     | 
| 
      
 48 
     | 
    
         
            +
             
     | 
| 
      
 49 
     | 
    
         
            +
                  end
         
     | 
| 
      
 50 
     | 
    
         
            +
             
     | 
| 
      
 51 
     | 
    
         
            +
                end
         
     | 
| 
      
 52 
     | 
    
         
            +
             
     | 
| 
      
 53 
     | 
    
         
            +
              end
         
     | 
| 
      
 54 
     | 
    
         
            +
             
     | 
| 
      
 55 
     | 
    
         
            +
            end
         
     | 
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,91 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: sixarm_ruby_minitest_extensions
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.0.0
         
     | 
| 
      
 5 
     | 
    
         
            +
            platform: ruby
         
     | 
| 
      
 6 
     | 
    
         
            +
            authors:
         
     | 
| 
      
 7 
     | 
    
         
            +
            - SixArm
         
     | 
| 
      
 8 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
      
 9 
     | 
    
         
            +
            bindir: bin
         
     | 
| 
      
 10 
     | 
    
         
            +
            cert_chain:
         
     | 
| 
      
 11 
     | 
    
         
            +
            - |
         
     | 
| 
      
 12 
     | 
    
         
            +
              -----BEGIN CERTIFICATE-----
         
     | 
| 
      
 13 
     | 
    
         
            +
              MIIDBDCCAm2gAwIBAgIJAKPwEETU5bHoMA0GCSqGSIb3DQEBBQUAMGAxCzAJBgNV
         
     | 
| 
      
 14 
     | 
    
         
            +
              BAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNp
         
     | 
| 
      
 15 
     | 
    
         
            +
              c2NvMQ8wDQYDVQQKEwZTaXhBcm0xEzARBgNVBAMTCnNpeGFybS5jb20wHhcNMTAx
         
     | 
| 
      
 16 
     | 
    
         
            +
              MjEzMjMyNzEzWhcNMTMwOTA4MjMyNzEzWjBgMQswCQYDVQQGEwJVUzETMBEGA1UE
         
     | 
| 
      
 17 
     | 
    
         
            +
              CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEPMA0GA1UEChMG
         
     | 
| 
      
 18 
     | 
    
         
            +
              U2l4QXJtMRMwEQYDVQQDEwpzaXhhcm0uY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GN
         
     | 
| 
      
 19 
     | 
    
         
            +
              ADCBiQKBgQC94mD9JDwBsunsOI0VR3CXXbOWg9cWaWciwFyJNFiM7A9I8KPLfXUw
         
     | 
| 
      
 20 
     | 
    
         
            +
              QC4czUe5ZuG4WHvinrWhkrCK+1dWBqoEClxdF/FoKO5a+tonGCjjmfy81JmFjjyx
         
     | 
| 
      
 21 
     | 
    
         
            +
              eTsjsHyvw+Qik9kpf9aj6+pnkNrVswgNHVea2o9yabbEiS6VSeJWoQIDAQABo4HF
         
     | 
| 
      
 22 
     | 
    
         
            +
              MIHCMB0GA1UdDgQWBBQzPJtqmSgc53eDN7aSzDQwr9TALDCBkgYDVR0jBIGKMIGH
         
     | 
| 
      
 23 
     | 
    
         
            +
              gBQzPJtqmSgc53eDN7aSzDQwr9TALKFkpGIwYDELMAkGA1UEBhMCVVMxEzARBgNV
         
     | 
| 
      
 24 
     | 
    
         
            +
              BAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xDzANBgNVBAoT
         
     | 
| 
      
 25 
     | 
    
         
            +
              BlNpeEFybTETMBEGA1UEAxMKc2l4YXJtLmNvbYIJAKPwEETU5bHoMAwGA1UdEwQF
         
     | 
| 
      
 26 
     | 
    
         
            +
              MAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAooEexP/oPam1TP71SyuhxMb+uTrZbSQe
         
     | 
| 
      
 27 
     | 
    
         
            +
              jVB+ExRwWadGwaNPUA56d39qwavwP+iu+3JpeonNMVvbWXF5naCX/dNFIeREHzER
         
     | 
| 
      
 28 
     | 
    
         
            +
              ZDRQYMqru9TEMna6HD9zpcstF7vwThGovlOQ+3Y6plQ4nMzipXcZ9THqs65PIL0q
         
     | 
| 
      
 29 
     | 
    
         
            +
              eabwpCbAopo=
         
     | 
| 
      
 30 
     | 
    
         
            +
              -----END CERTIFICATE-----
         
     | 
| 
      
 31 
     | 
    
         
            +
            date: 2013-06-04 00:00:00.000000000 Z
         
     | 
| 
      
 32 
     | 
    
         
            +
            dependencies:
         
     | 
| 
      
 33 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 34 
     | 
    
         
            +
              name: minitest
         
     | 
| 
      
 35 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 36 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 37 
     | 
    
         
            +
                - - '>='
         
     | 
| 
      
 38 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 39 
     | 
    
         
            +
                    version: 5.0.3
         
     | 
| 
      
 40 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 41 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 42 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 43 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 44 
     | 
    
         
            +
                - - '>='
         
     | 
| 
      
 45 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 46 
     | 
    
         
            +
                    version: 5.0.3
         
     | 
| 
      
 47 
     | 
    
         
            +
            description: 
         
     | 
| 
      
 48 
     | 
    
         
            +
            email: sixarm@sixarm.com
         
     | 
| 
      
 49 
     | 
    
         
            +
            executables: []
         
     | 
| 
      
 50 
     | 
    
         
            +
            extensions: []
         
     | 
| 
      
 51 
     | 
    
         
            +
            extra_rdoc_files: []
         
     | 
| 
      
 52 
     | 
    
         
            +
            files:
         
     | 
| 
      
 53 
     | 
    
         
            +
            - .gemtest
         
     | 
| 
      
 54 
     | 
    
         
            +
            - CONTRIBUTING.md
         
     | 
| 
      
 55 
     | 
    
         
            +
            - Rakefile
         
     | 
| 
      
 56 
     | 
    
         
            +
            - README.md
         
     | 
| 
      
 57 
     | 
    
         
            +
            - VERSION
         
     | 
| 
      
 58 
     | 
    
         
            +
            - lib/sixarm_ruby_minitest_extensions.rb
         
     | 
| 
      
 59 
     | 
    
         
            +
            - lib/sixarm_ruby_minitest_extensions/assertions.rb
         
     | 
| 
      
 60 
     | 
    
         
            +
            - lib/sixarm_ruby_minitest_extensions/expectations.rb
         
     | 
| 
      
 61 
     | 
    
         
            +
            - test/sixarm_ruby_minitest_extensions_test.rb
         
     | 
| 
      
 62 
     | 
    
         
            +
            - test/sixarm_ruby_minitest_extensions_test/assertions_test.rb
         
     | 
| 
      
 63 
     | 
    
         
            +
            - test/sixarm_ruby_minitest_extensions_test/expectations_test.rb
         
     | 
| 
      
 64 
     | 
    
         
            +
            homepage: http://sixarm.com/
         
     | 
| 
      
 65 
     | 
    
         
            +
            licenses: []
         
     | 
| 
      
 66 
     | 
    
         
            +
            metadata: {}
         
     | 
| 
      
 67 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
      
 68 
     | 
    
         
            +
            rdoc_options: []
         
     | 
| 
      
 69 
     | 
    
         
            +
            require_paths:
         
     | 
| 
      
 70 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 71 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 72 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 73 
     | 
    
         
            +
              - - '>='
         
     | 
| 
      
 74 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 75 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 76 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 77 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 78 
     | 
    
         
            +
              - - '>='
         
     | 
| 
      
 79 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 80 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 81 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 82 
     | 
    
         
            +
            rubyforge_project: 
         
     | 
| 
      
 83 
     | 
    
         
            +
            rubygems_version: 2.0.3
         
     | 
| 
      
 84 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 85 
     | 
    
         
            +
            specification_version: 4
         
     | 
| 
      
 86 
     | 
    
         
            +
            summary: SixArm.com » Ruby » Minitest extensions
         
     | 
| 
      
 87 
     | 
    
         
            +
            test_files:
         
     | 
| 
      
 88 
     | 
    
         
            +
            - test/sixarm_ruby_minitest_extensions_test.rb
         
     | 
| 
      
 89 
     | 
    
         
            +
            - test/sixarm_ruby_minitest_extensions_test/assertions_test.rb
         
     | 
| 
      
 90 
     | 
    
         
            +
            - test/sixarm_ruby_minitest_extensions_test/expectations_test.rb
         
     | 
| 
      
 91 
     | 
    
         
            +
            has_rdoc: true
         
     | 
    
        metadata.gz.sig
    ADDED
    
    | 
         Binary file 
     |