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 CHANGED
@@ -1,5 +1,6 @@
1
1
  *.gem
2
2
  .bundle
3
3
  .DS_Store
4
+ coverage
4
5
  Gemfile.lock
5
6
  pkg/*
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.0'
68
+ gem 'minitest_should', '~> 0.3.1'
69
69
  ```
70
70
 
71
- Then run `bundle install`
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
@@ -3,8 +3,8 @@
3
3
  class MiniTest::Should::TestCase < MiniTest::Spec
4
4
 
5
5
  class << self
6
- alias :setup :before unless defined?(Rails)
7
- alias :teardown :after unless defined?(Rails)
6
+ alias :setup :before
7
+ alias :teardown :after
8
8
  alias :context :describe
9
9
  end
10
10
 
@@ -1,5 +1,5 @@
1
1
  module MiniTest
2
2
  module Should
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
@@ -1,4 +1,8 @@
1
1
  gem "minitest"
2
+
3
+ begin; require "simplecov"; SimpleCov.start; rescue LoadError; end
4
+ begin; require "turn"; rescue LoadError; end
5
+
2
6
  require "minitest/autorun"
3
7
  require "minitest/should"
4
8
 
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.0
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-20 00:00:00.000000000Z
12
+ date: 2012-01-26 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
- requirement: &70318086885480 !ruby/object:Gem::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: *70318086885480
24
+ version_requirements: *70308648065800
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70318086884980 !ruby/object:Gem::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: *70318086884980
35
+ version_requirements: *70308648065300
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: minitest
38
- requirement: &70318086884520 !ruby/object:Gem::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: *70318086884520
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