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 +4 -4
- data/README.md +1 -3
- data/lib/must.rb +10 -5
- data/lib/must/test/unit/version.rb +1 -1
- metadata +2 -3
- data/lib/must/test/unit.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81b9c1b35f121fc179e32f20738548ba79ac9b2b
|
4
|
+
data.tar.gz: fcec3e1b91585559a8146991c93cacc5a66a9561
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
5
|
-
require 'test/unit'
|
6
|
-
|
5
|
+
require 'must/test/unit/version'
|
7
6
|
|
8
|
-
|
9
|
-
def
|
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)
|
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
|
+
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-
|
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
|