minitest-context 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -3,9 +3,9 @@ __OVERVIEW__
3
3
 
4
4
  | Project | minitest-context
5
5
  |:----------------|:--------------------------------------------------
6
- | Author | Rob Gleeson
7
6
  | Homepage | https://github.com/robgleeson/minitest-context
8
7
  | Documentation | http://rubydoc.info/gems/minitest-context/frames
8
+ | Author | Rob Gleeson
9
9
 
10
10
 
11
11
  __DESCRIPTION__
@@ -7,7 +7,9 @@ module MiniTest::Context
7
7
  class << self
8
8
 
9
9
  # @private
10
- attr_reader :list
10
+ def list
11
+ @list = @list || Hash.new { |h,k| h[k] = [] }
12
+ end
11
13
 
12
14
  #
13
15
  # Defines a context.
@@ -30,8 +32,7 @@ module MiniTest::Context
30
32
  #
31
33
  def define name, &block
32
34
  raise ArgumentError, "Block expected." unless block_given?
33
- @list = @list || Hash.new { |h,k| h[k] = [] }
34
- @list[name] << block
35
+ list[name] << block
35
36
  end
36
37
 
37
38
  end
@@ -1,5 +1,5 @@
1
1
  module MiniTest
2
2
  module Context
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.1"
4
4
  end
5
5
  end
@@ -13,13 +13,13 @@ describe "Contexts" do
13
13
  inherit_context :before_block
14
14
 
15
15
  describe "Suite 1" do
16
- it "must the inherit context from the parent suite." do
16
+ it "must inherit the context from the parent suite." do
17
17
  @example.must_be_instance_of(Array)
18
18
  end
19
19
  end
20
20
 
21
21
  describe "Suite 2" do
22
- it "must the inherit context from the parent suite." do
22
+ it "must inherit the context from the parent suite." do
23
23
  @example.must_be_instance_of(Array)
24
24
  end
25
25
  end
@@ -28,7 +28,7 @@ describe "Contexts" do
28
28
  describe "A stacked context." do
29
29
  inherit_context :stacked_context
30
30
 
31
- it "must execute all stacked contexts." do
31
+ it "must inherit all stacked contexts." do
32
32
  @number.must_equal(2)
33
33
  end
34
34
  end
metadata CHANGED
@@ -1,45 +1,64 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: minitest-context
3
- version: !ruby/object:Gem::Version
4
- version: 0.3.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 17
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 3
9
+ - 1
10
+ version: 0.3.1
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - robgleeson
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-10-02 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: minitest
16
- requirement: &70313064995720 !ruby/object:Gem::Requirement
17
+
18
+ date: 2011-10-02 00:00:00 +01:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ prerelease: false
23
+ type: :runtime
24
+ version_requirements: &id001 !ruby/object:Gem::Requirement
17
25
  none: false
18
- requirements:
26
+ requirements:
19
27
  - - ~>
20
- - !ruby/object:Gem::Version
21
- version: '2.5'
22
- type: :runtime
28
+ - !ruby/object:Gem::Version
29
+ hash: 9
30
+ segments:
31
+ - 2
32
+ - 5
33
+ version: "2.5"
34
+ requirement: *id001
35
+ name: minitest
36
+ - !ruby/object:Gem::Dependency
23
37
  prerelease: false
24
- version_requirements: *70313064995720
25
- - !ruby/object:Gem::Dependency
26
- name: rake
27
- requirement: &70313064994960 !ruby/object:Gem::Requirement
38
+ type: :development
39
+ version_requirements: &id002 !ruby/object:Gem::Requirement
28
40
  none: false
29
- requirements:
41
+ requirements:
30
42
  - - ~>
31
- - !ruby/object:Gem::Version
43
+ - !ruby/object:Gem::Version
44
+ hash: 63
45
+ segments:
46
+ - 0
47
+ - 9
48
+ - 2
32
49
  version: 0.9.2
33
- type: :development
34
- prerelease: false
35
- version_requirements: *70313064994960
50
+ requirement: *id002
51
+ name: rake
36
52
  description: Defines contexts for code reuse in MiniTest specs that share common expectations.
37
- email:
53
+ email:
38
54
  - rob@flowof.info
39
55
  executables: []
56
+
40
57
  extensions: []
58
+
41
59
  extra_rdoc_files: []
42
- files:
60
+
61
+ files:
43
62
  - .gitignore
44
63
  - .travis.yml
45
64
  - .yardopts
@@ -55,37 +74,41 @@ files:
55
74
  - test/contexts/stacked_context.rb
56
75
  - test/minitest_context_test.rb
57
76
  - test/setup.rb
77
+ has_rdoc: true
58
78
  homepage: https://github.com/robgleeson/minitest-context
59
79
  licenses: []
80
+
60
81
  post_install_message:
61
82
  rdoc_options: []
62
- require_paths:
83
+
84
+ require_paths:
63
85
  - lib
64
- required_ruby_version: !ruby/object:Gem::Requirement
86
+ required_ruby_version: !ruby/object:Gem::Requirement
65
87
  none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- segments:
88
+ requirements:
89
+ - - ">="
90
+ - !ruby/object:Gem::Version
91
+ hash: 3
92
+ segments:
71
93
  - 0
72
- hash: -2902589455045483768
73
- required_rubygems_version: !ruby/object:Gem::Requirement
94
+ version: "0"
95
+ required_rubygems_version: !ruby/object:Gem::Requirement
74
96
  none: false
75
- requirements:
76
- - - ! '>='
77
- - !ruby/object:Gem::Version
78
- version: '0'
79
- segments:
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ hash: 3
101
+ segments:
80
102
  - 0
81
- hash: -2902589455045483768
103
+ version: "0"
82
104
  requirements: []
105
+
83
106
  rubyforge_project:
84
- rubygems_version: 1.8.10
107
+ rubygems_version: 1.6.2
85
108
  signing_key:
86
109
  specification_version: 3
87
110
  summary: Defines contexts for code reuse in MiniTest specs that share common expectations.
88
- test_files:
111
+ test_files:
89
112
  - test/contexts/before_block_context.rb
90
113
  - test/contexts/stacked_context.rb
91
114
  - test/minitest_context_test.rb