must-test-unit 0.4.0 → 0.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 288254f0bd176f4fae7a20745d4085613b8469d1
4
- data.tar.gz: 3d8e7d58e77440d114ddc16102ee1fffba5ac9ce
3
+ metadata.gz: 81b9c1b35f121fc179e32f20738548ba79ac9b2b
4
+ data.tar.gz: fcec3e1b91585559a8146991c93cacc5a66a9561
5
5
  SHA512:
6
- metadata.gz: b22f4065d8763309ad66daa555cedd567ccb81d61badb4dc1b35f382ceee310131d06f8c20a3f3a16038b918c0c182868cd0eada72d36f3ac235befa6c2ef369
7
- data.tar.gz: 0cebd75545f3463231fbf1b5f3d31a3138cdd235cad3f73c57b81414d953c5e8e823ace2ee94797d8a9d7b2af3b109641d2c58ec679b7d230af637b3634ffe4e
6
+ metadata.gz: 861874b7f5c4df7cd2a3c46cb8e8b6c3d054710104e9c968f8941de713f942d91bf4b21d048198de700d7ceb7cc71b879c8aaea5edbcf6cf02fb59d923195bfc
7
+ data.tar.gz: 0d637d4490950d84183672f30e8be48502d520be5cc14b6f4f4020afa0af24267a054118df824b4218bb96b88d8bc98f81be251b9db875dd718ae358f527375b
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # require 'must'
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/must/test/unit`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ Welcome to must-test-unit gem project, this gem will add the must method to your TestCase classes as prescribed below, Enjoy programming.
6
4
 
7
5
  ## Installation
8
6
 
data/lib/must.rb CHANGED
@@ -1,12 +1,11 @@
1
+ # encoding: utf-8
1
2
  # Ruby Dose Facebook Page
2
3
  # https://www.facebook.com/ruby.dose
3
4
 
4
- require 'must/test/unit/version.rb'
5
- require 'test/unit'
6
-
5
+ require 'must/test/unit/version'
7
6
 
8
- class Test::Unit::TestCase
9
- def self.must(name, &block)
7
+ module Must::Test::Unit
8
+ def must(name, &block)
10
9
  # convert "any method description" to any_method_description
11
10
  test_name = "test_#{name.gsub(/\s+/, '_')}".to_sym
12
11
 
@@ -25,3 +24,9 @@ class Test::Unit::TestCase
25
24
  end
26
25
  end
27
26
  end
27
+
28
+ require 'minitest/autorun'
29
+ Minitest::Test.extend(Must::Test::Unit)
30
+
31
+ require 'test/unit'
32
+ Test::Unit::TestCase.extend(Must::Test::Unit)
@@ -1,7 +1,7 @@
1
1
  module Must
2
2
  module Test
3
3
  module Unit
4
- VERSION = "0.4.0"
4
+ VERSION = "0.5.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: must-test-unit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - a7madx7
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-25 00:00:00.000000000 Z
11
+ date: 2016-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -84,7 +84,6 @@ files:
84
84
  - bin/console
85
85
  - bin/setup
86
86
  - lib/must.rb
87
- - lib/must/test/unit.rb
88
87
  - lib/must/test/unit/version.rb
89
88
  - must-test-unit.gemspec
90
89
  homepage: http://rubygems.org/gems/must-test-unit
@@ -1,9 +0,0 @@
1
- require "must/test/unit/version"
2
-
3
- module Must
4
- module Test
5
- module Unit
6
- # Your code goes here...
7
- end
8
- end
9
- end