minitest_should 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.md +23 -3
- data/lib/minitest/should/test_case.rb +2 -2
- data/lib/minitest/should/version.rb +1 -1
- data/test/test_minitest_should.rb +4 -0
- metadata +14 -8
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# MiniTest Should [![Build Status](https://secure.travis-ci.org/citrus/minitest_should.png)](http://travis-ci.org/citrus/minitest_should)
|
2
2
|
|
3
|
-
minitest_should allows you to write unit tests with [shoulda](https://github.com/thoughtbot/shoulda) style syntax.
|
3
|
+
minitest_should allows you to write unit tests with [shoulda](https://github.com/thoughtbot/shoulda) style context syntax for minitest.
|
4
4
|
|
5
5
|
------------------------------------------------------------------------------
|
6
6
|
Usage
|
@@ -65,10 +65,25 @@ As usual, just use the `gem install` command:
|
|
65
65
|
Or add minitest_should as a gem in your Gemfile:
|
66
66
|
|
67
67
|
```bash
|
68
|
-
gem 'minitest_should', '~> 0.3.
|
68
|
+
gem 'minitest_should', '~> 0.3.1'
|
69
69
|
```
|
70
70
|
|
71
|
-
|
71
|
+
Run `bundle install` then require minitest_should like so:
|
72
|
+
|
73
|
+
```ruby
|
74
|
+
require "minitest/autorun"
|
75
|
+
require "minitest/should"
|
76
|
+
```
|
77
|
+
|
78
|
+
Make sure your test classes inherit from `MiniTest::Should::TestCase`
|
79
|
+
|
80
|
+
```ruby
|
81
|
+
class MyTest < MiniTest::Should::TestCase
|
82
|
+
|
83
|
+
# ...
|
84
|
+
|
85
|
+
end
|
86
|
+
```
|
72
87
|
|
73
88
|
|
74
89
|
------------------------------------------------------------------------------
|
@@ -86,6 +101,11 @@ rake
|
|
86
101
|
Changelog
|
87
102
|
------------------------------------------------------------------------------
|
88
103
|
|
104
|
+
**2012/1/26 - v0.3.1**
|
105
|
+
|
106
|
+
- always alias setup to before, even if rails is present
|
107
|
+
|
108
|
+
|
89
109
|
**2012/1/20 - v0.3.0**
|
90
110
|
|
91
111
|
- don't pollute minitest/unit/testcase
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest_should
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-
|
12
|
+
date: 2012-01-26 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: &
|
16
|
+
requirement: &70308648065800 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>'
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70308648065800
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: bundler
|
27
|
-
requirement: &
|
27
|
+
requirement: &70308648065300 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>'
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70308648065300
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: minitest
|
38
|
-
requirement: &
|
38
|
+
requirement: &70308648064820 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>'
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '2'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70308648064820
|
47
47
|
description: Shoulda style syntax for minitest test::unit. Contexts are not yet supported,
|
48
48
|
but you can use `should "do something"` instead of those `pesky_underscored_test_names`.
|
49
49
|
Please see documentation for more information.
|
@@ -76,12 +76,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
76
|
- - ! '>='
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: '0'
|
79
|
+
segments:
|
80
|
+
- 0
|
81
|
+
hash: -2440146493679657949
|
79
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
83
|
none: false
|
81
84
|
requirements:
|
82
85
|
- - ! '>='
|
83
86
|
- !ruby/object:Gem::Version
|
84
87
|
version: '0'
|
88
|
+
segments:
|
89
|
+
- 0
|
90
|
+
hash: -2440146493679657949
|
85
91
|
requirements: []
|
86
92
|
rubyforge_project: minitest_should
|
87
93
|
rubygems_version: 1.8.10
|