minitest-context 0.3.1 → 0.4.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.
data/lib/minitest/ext/spec.rb
CHANGED
@@ -4,8 +4,8 @@ describe "Contexts" do
|
|
4
4
|
describe "An inherited context." do
|
5
5
|
inherit_context :before_block
|
6
6
|
|
7
|
-
it "must assign an Array to @
|
8
|
-
@
|
7
|
+
it "must assign an Array to @subject." do
|
8
|
+
@subject.must_equal([1,2,3])
|
9
9
|
end
|
10
10
|
end
|
11
11
|
|
@@ -14,13 +14,13 @@ describe "Contexts" do
|
|
14
14
|
|
15
15
|
describe "Suite 1" do
|
16
16
|
it "must inherit the context from the parent suite." do
|
17
|
-
@
|
17
|
+
@subject.must_equal([1,2,3])
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
21
|
describe "Suite 2" do
|
22
22
|
it "must inherit the context from the parent suite." do
|
23
|
-
@
|
23
|
+
@subject.must_equal([1,2,3])
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
@@ -29,7 +29,7 @@ describe "Contexts" do
|
|
29
29
|
inherit_context :stacked_context
|
30
30
|
|
31
31
|
it "must inherit all stacked contexts." do
|
32
|
-
@
|
32
|
+
@subject.must_equal(2)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-context
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 4
|
9
|
+
- 0
|
10
|
+
version: 0.4.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- robgleeson
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-10-
|
18
|
+
date: 2011-10-04 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|