mspec 1.5.17 → 1.5.18
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +27 -0
- data/Gemfile +4 -0
- data/README +39 -159
- data/Rakefile +4 -44
- data/bin/mkspec.bat +1 -0
- data/bin/mspec-ci.bat +1 -0
- data/bin/mspec-run.bat +1 -0
- data/bin/mspec-tag.bat +1 -0
- data/bin/mspec.bat +1 -0
- data/lib/mspec/commands/mkspec.rb +2 -2
- data/lib/mspec/commands/mspec-run.rb +4 -0
- data/lib/mspec/commands/mspec.rb +18 -3
- data/lib/mspec/guards.rb +1 -0
- data/lib/mspec/guards/block_device.rb +22 -0
- data/lib/mspec/guards/guard.rb +14 -2
- data/lib/mspec/helpers.rb +5 -5
- data/lib/mspec/helpers/const_lookup.rb +6 -1
- data/lib/mspec/helpers/datetime.rb +28 -0
- data/lib/mspec/helpers/ducktype.rb +4 -4
- data/lib/mspec/helpers/environment.rb +19 -2
- data/lib/mspec/helpers/fs.rb +5 -1
- data/lib/mspec/helpers/io.rb +39 -1
- data/lib/mspec/helpers/numeric.rb +89 -0
- data/lib/mspec/helpers/pack.rb +3 -0
- data/lib/mspec/helpers/ruby_exe.rb +53 -15
- data/lib/mspec/helpers/singleton_class.rb +7 -0
- data/lib/mspec/helpers/stasy.rb +33 -0
- data/lib/mspec/helpers/tmp.rb +16 -3
- data/lib/mspec/matchers.rb +8 -0
- data/lib/mspec/matchers/be_computed_by.rb +37 -0
- data/lib/mspec/matchers/be_computed_by_function.rb +35 -0
- data/lib/mspec/matchers/be_nan.rb +20 -0
- data/lib/mspec/matchers/be_valid_dns_name.rb +25 -0
- data/lib/mspec/matchers/have_data.rb +6 -5
- data/lib/mspec/matchers/have_private_method.rb +24 -0
- data/lib/mspec/matchers/have_singleton_method.rb +24 -0
- data/lib/mspec/matchers/infinity.rb +28 -0
- data/lib/mspec/matchers/match_yaml.rb +5 -5
- data/lib/mspec/matchers/raise_error.rb +5 -3
- data/lib/mspec/matchers/signed_zero.rb +28 -0
- data/lib/mspec/mocks/mock.rb +15 -9
- data/lib/mspec/mocks/object.rb +4 -0
- data/lib/mspec/mocks/proxy.rb +26 -1
- data/lib/mspec/runner/actions.rb +0 -1
- data/lib/mspec/runner/context.rb +18 -16
- data/lib/mspec/runner/formatters.rb +2 -0
- data/lib/mspec/runner/formatters/dotted.rb +13 -1
- data/lib/mspec/runner/formatters/junit.rb +96 -0
- data/lib/mspec/runner/formatters/profile.rb +70 -0
- data/lib/mspec/runner/mspec.rb +11 -0
- data/lib/mspec/runner/shared.rb +1 -1
- data/lib/mspec/utils/options.rb +33 -9
- data/lib/mspec/utils/ruby_name.rb +1 -1
- data/lib/mspec/utils/script.rb +2 -1
- data/lib/mspec/version.rb +1 -1
- data/mspec.gemspec +40 -0
- data/spec/commands/mkspec_spec.rb +4 -3
- data/spec/commands/mspec_ci_spec.rb +1 -6
- data/spec/commands/mspec_run_spec.rb +1 -6
- data/spec/commands/mspec_spec.rb +14 -6
- data/spec/commands/mspec_tag_spec.rb +28 -27
- data/spec/expectations/expectations_spec.rb +1 -1
- data/spec/expectations/should_spec.rb +4 -4
- data/spec/guards/background_spec.rb +2 -2
- data/spec/guards/block_device_spec.rb +46 -0
- data/spec/guards/bug_spec.rb +2 -3
- data/spec/guards/compliance_spec.rb +2 -2
- data/spec/guards/conflict_spec.rb +2 -2
- data/spec/guards/endian_spec.rb +2 -2
- data/spec/guards/extensions_spec.rb +2 -2
- data/spec/guards/feature_spec.rb +2 -2
- data/spec/guards/guard_spec.rb +80 -22
- data/spec/guards/noncompliance_spec.rb +2 -2
- data/spec/guards/platform_spec.rb +2 -2
- data/spec/guards/quarantine_spec.rb +2 -2
- data/spec/guards/runner_spec.rb +2 -2
- data/spec/guards/specified_spec.rb +2 -2
- data/spec/guards/superuser_spec.rb +2 -2
- data/spec/guards/support_spec.rb +2 -2
- data/spec/guards/tty_spec.rb +2 -2
- data/spec/guards/user_spec.rb +2 -2
- data/spec/guards/version_spec.rb +2 -2
- data/spec/helpers/argv_spec.rb +3 -2
- data/spec/helpers/const_lookup_spec.rb +3 -2
- data/spec/helpers/datetime_spec.rb +44 -0
- data/spec/helpers/ducktype_spec.rb +3 -2
- data/spec/helpers/encode_spec.rb +3 -2
- data/spec/helpers/enumerator_class_spec.rb +5 -5
- data/spec/helpers/environment_spec.rb +15 -3
- data/spec/helpers/fixture_spec.rb +3 -2
- data/spec/helpers/flunk_spec.rb +4 -3
- data/spec/helpers/fs_spec.rb +35 -18
- data/spec/helpers/hash_spec.rb +3 -2
- data/spec/helpers/io_spec.rb +75 -6
- data/spec/helpers/language_version_spec.rb +3 -2
- data/spec/helpers/mock_to_path_spec.rb +3 -2
- data/spec/helpers/numeric_spec.rb +25 -0
- data/spec/helpers/ruby_exe_spec.rb +115 -29
- data/spec/helpers/scratch_spec.rb +3 -1
- data/spec/helpers/stasy_spec.rb +59 -0
- data/spec/helpers/tmp_spec.rb +21 -4
- data/spec/matchers/base_spec.rb +2 -2
- data/spec/matchers/be_an_instance_of_spec.rb +2 -2
- data/spec/matchers/be_ancestor_of_spec.rb +2 -2
- data/spec/matchers/be_close_spec.rb +2 -2
- data/spec/matchers/be_computed_by_function_spec.rb +36 -0
- data/spec/matchers/be_computed_by_spec.rb +42 -0
- data/spec/matchers/be_empty_spec.rb +2 -2
- data/spec/matchers/be_false_spec.rb +3 -3
- data/spec/matchers/be_kind_of_spec.rb +2 -2
- data/spec/matchers/be_nan_spec.rb +28 -0
- data/spec/matchers/be_nil_spec.rb +3 -3
- data/spec/matchers/be_true_spec.rb +3 -3
- data/spec/matchers/be_valid_dns_name_spec.rb +50 -0
- data/spec/matchers/complain_spec.rb +2 -2
- data/spec/matchers/eql_spec.rb +2 -2
- data/spec/matchers/equal_element_spec.rb +2 -2
- data/spec/matchers/equal_spec.rb +2 -2
- data/spec/matchers/equal_utf16_spec.rb +2 -2
- data/spec/matchers/have_class_variable_spec.rb +3 -3
- data/spec/matchers/have_constant_spec.rb +2 -2
- data/spec/matchers/have_data_spec.rb +8 -5
- data/spec/matchers/have_instance_method_spec.rb +2 -2
- data/spec/matchers/have_instance_variable_spec.rb +3 -3
- data/spec/matchers/have_method_spec.rb +2 -2
- data/spec/matchers/have_private_instance_method_spec.rb +3 -3
- data/spec/matchers/have_private_method_spec.rb +44 -0
- data/spec/matchers/have_protected_instance_method_spec.rb +2 -2
- data/spec/matchers/have_public_instance_method_spec.rb +2 -2
- data/spec/matchers/have_singleton_method_spec.rb +45 -0
- data/spec/matchers/include_spec.rb +2 -2
- data/spec/matchers/infinity_spec.rb +34 -0
- data/spec/matchers/match_yaml_spec.rb +3 -3
- data/spec/matchers/output_spec.rb +2 -2
- data/spec/matchers/output_to_fd_spec.rb +2 -2
- data/spec/matchers/raise_error_spec.rb +24 -3
- data/spec/matchers/respond_to_spec.rb +2 -2
- data/spec/matchers/signed_zero_spec.rb +32 -0
- data/spec/matchers/stringsymboladapter_spec.rb +2 -2
- data/spec/mocks/mock_spec.rb +12 -12
- data/spec/mocks/proxy_spec.rb +1 -1
- data/spec/runner/actions/gdb_spec.rb +1 -1
- data/spec/runner/actions/tag_spec.rb +1 -1
- data/spec/runner/actions/taglist_spec.rb +1 -1
- data/spec/runner/context_spec.rb +27 -27
- data/spec/runner/example_spec.rb +1 -1
- data/spec/runner/exception_spec.rb +1 -1
- data/spec/runner/filters/tag_spec.rb +2 -2
- data/spec/runner/formatters/describe_spec.rb +1 -1
- data/spec/runner/formatters/dotted_spec.rb +2 -2
- data/spec/runner/formatters/html_spec.rb +2 -2
- data/spec/runner/formatters/junit_spec.rb +147 -0
- data/spec/runner/formatters/unit_spec.rb +2 -2
- data/spec/runner/formatters/yaml_spec.rb +3 -3
- data/spec/runner/mspec_spec.rb +22 -21
- data/spec/runner/shared_spec.rb +9 -1
- data/spec/runner/tag_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -7
- data/spec/utils/name_map_spec.rb +1 -2
- data/spec/utils/options_spec.rb +58 -27
- data/spec/utils/script_spec.rb +5 -13
- data/spec/utils/version_spec.rb +1 -1
- metadata +254 -64
- data/lib/mspec/helpers/bignum.rb +0 -5
- data/lib/mspec/helpers/fmode.rb +0 -15
- data/lib/mspec/helpers/infinity.rb +0 -5
- data/lib/mspec/helpers/metaclass.rb +0 -7
- data/lib/mspec/helpers/nan.rb +0 -5
- data/lib/mspec/runner/actions/debug.rb +0 -17
- data/spec/helpers/bignum_spec.rb +0 -11
- data/spec/helpers/fmode_spec.rb +0 -14
- data/spec/helpers/infinity_spec.rb +0 -8
- data/spec/helpers/nan_spec.rb +0 -8
- data/spec/runner/actions/debug_spec.rb +0 -62
data/spec/utils/script_spec.rb
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
require 'mspec/utils/script'
|
3
3
|
require 'mspec/runner/mspec'
|
4
4
|
require 'mspec/runner/filters'
|
5
5
|
require 'mspec/runner/actions/filter'
|
6
|
-
require 'mspec/runner/actions/debug'
|
7
6
|
require 'mspec/runner/actions/gdb'
|
8
7
|
|
9
8
|
describe MSpecScript, ".config" do
|
@@ -64,6 +63,7 @@ describe MSpecScript, "#load_default" do
|
|
64
63
|
end
|
65
64
|
|
66
65
|
it "attempts to load 'default.mspec'" do
|
66
|
+
@script.stub!(:load)
|
67
67
|
@script.should_receive(:load).with('default.mspec').and_return(true)
|
68
68
|
@script.load_default
|
69
69
|
end
|
@@ -80,7 +80,7 @@ end
|
|
80
80
|
|
81
81
|
describe MSpecScript, ".main" do
|
82
82
|
before :each do
|
83
|
-
@script = mock("MSpecScript"
|
83
|
+
@script = mock("MSpecScript").as_null_object
|
84
84
|
MSpecScript.stub!(:new).and_return(@script)
|
85
85
|
end
|
86
86
|
|
@@ -212,7 +212,7 @@ describe MSpecScript, "#register" do
|
|
212
212
|
before :each do
|
213
213
|
@script = MSpecScript.new
|
214
214
|
|
215
|
-
@formatter = mock("formatter"
|
215
|
+
@formatter = mock("formatter").as_null_object
|
216
216
|
@script.config[:formatter] = @formatter
|
217
217
|
end
|
218
218
|
|
@@ -249,7 +249,7 @@ describe MSpecScript, "#register" do
|
|
249
249
|
before :each do
|
250
250
|
@script = MSpecScript.new
|
251
251
|
|
252
|
-
@formatter = mock("formatter"
|
252
|
+
@formatter = mock("formatter").as_null_object
|
253
253
|
@script.config[:formatter] = @formatter
|
254
254
|
|
255
255
|
@filter = mock("filter")
|
@@ -306,14 +306,6 @@ describe MSpecScript, "#register" do
|
|
306
306
|
@script.register
|
307
307
|
end
|
308
308
|
|
309
|
-
it "creates and registers a DebugAction for excluded specs" do
|
310
|
-
@script.config[:atags] = ["some"]
|
311
|
-
@script.config[:astrings] = ["string"]
|
312
|
-
DebugAction.should_receive(:new).with(["some"], ["string"]).and_return(@filter)
|
313
|
-
@script.config[:debugger] = true
|
314
|
-
@script.register
|
315
|
-
end
|
316
|
-
|
317
309
|
it "creates and registers a GdbAction for excluded specs" do
|
318
310
|
@script.config[:atags] = ["some"]
|
319
311
|
@script.config[:astrings] = ["string"]
|
data/spec/utils/version_spec.rb
CHANGED
metadata
CHANGED
@@ -1,41 +1,91 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mspec
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.5.18
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
-
- Brian
|
7
|
+
authors:
|
8
|
+
- Brian Shirai
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
12
|
+
date: 2013-02-20 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '10.0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '10.0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '2.8'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '2.8'
|
46
|
+
description: ! 'MSpec is a specialized framework for RubySpec.
|
11
47
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
description:
|
17
|
-
email: bford@engineyard.com
|
18
|
-
executables:
|
48
|
+
'
|
49
|
+
email:
|
50
|
+
- bshirai@engineyard.com
|
51
|
+
executables:
|
19
52
|
- mkspec
|
20
53
|
- mspec
|
21
54
|
- mspec-ci
|
22
55
|
- mspec-run
|
23
56
|
- mspec-tag
|
24
57
|
extensions: []
|
25
|
-
|
26
|
-
extra_rdoc_files:
|
58
|
+
extra_rdoc_files:
|
27
59
|
- README
|
28
60
|
- LICENSE
|
29
|
-
files:
|
61
|
+
files:
|
62
|
+
- .gitignore
|
63
|
+
- Gemfile
|
64
|
+
- LICENSE
|
65
|
+
- README
|
66
|
+
- Rakefile
|
67
|
+
- bin/mkspec
|
68
|
+
- bin/mkspec.bat
|
69
|
+
- bin/mspec
|
70
|
+
- bin/mspec-ci
|
71
|
+
- bin/mspec-ci.bat
|
72
|
+
- bin/mspec-run
|
73
|
+
- bin/mspec-run.bat
|
74
|
+
- bin/mspec-tag
|
75
|
+
- bin/mspec-tag.bat
|
76
|
+
- bin/mspec.bat
|
77
|
+
- lib/mspec.rb
|
30
78
|
- lib/mspec/commands/mkspec.rb
|
31
79
|
- lib/mspec/commands/mspec-ci.rb
|
32
80
|
- lib/mspec/commands/mspec-run.rb
|
33
81
|
- lib/mspec/commands/mspec-tag.rb
|
34
82
|
- lib/mspec/commands/mspec.rb
|
83
|
+
- lib/mspec/expectations.rb
|
35
84
|
- lib/mspec/expectations/expectations.rb
|
36
85
|
- lib/mspec/expectations/should.rb
|
37
|
-
- lib/mspec/
|
86
|
+
- lib/mspec/guards.rb
|
38
87
|
- lib/mspec/guards/background.rb
|
88
|
+
- lib/mspec/guards/block_device.rb
|
39
89
|
- lib/mspec/guards/bug.rb
|
40
90
|
- lib/mspec/guards/compliance.rb
|
41
91
|
- lib/mspec/guards/conflict.rb
|
@@ -53,38 +103,42 @@ files:
|
|
53
103
|
- lib/mspec/guards/tty.rb
|
54
104
|
- lib/mspec/guards/user.rb
|
55
105
|
- lib/mspec/guards/version.rb
|
56
|
-
- lib/mspec/
|
106
|
+
- lib/mspec/helpers.rb
|
57
107
|
- lib/mspec/helpers/argv.rb
|
58
|
-
- lib/mspec/helpers/bignum.rb
|
59
108
|
- lib/mspec/helpers/const_lookup.rb
|
109
|
+
- lib/mspec/helpers/datetime.rb
|
60
110
|
- lib/mspec/helpers/ducktype.rb
|
61
111
|
- lib/mspec/helpers/encode.rb
|
62
112
|
- lib/mspec/helpers/enumerator_class.rb
|
63
113
|
- lib/mspec/helpers/environment.rb
|
64
114
|
- lib/mspec/helpers/fixture.rb
|
65
115
|
- lib/mspec/helpers/flunk.rb
|
66
|
-
- lib/mspec/helpers/fmode.rb
|
67
116
|
- lib/mspec/helpers/fs.rb
|
68
117
|
- lib/mspec/helpers/hash.rb
|
69
|
-
- lib/mspec/helpers/infinity.rb
|
70
118
|
- lib/mspec/helpers/io.rb
|
71
119
|
- lib/mspec/helpers/language_version.rb
|
72
|
-
- lib/mspec/helpers/metaclass.rb
|
73
120
|
- lib/mspec/helpers/mock_to_path.rb
|
74
|
-
- lib/mspec/helpers/
|
121
|
+
- lib/mspec/helpers/numeric.rb
|
122
|
+
- lib/mspec/helpers/pack.rb
|
75
123
|
- lib/mspec/helpers/ruby_exe.rb
|
76
124
|
- lib/mspec/helpers/scratch.rb
|
125
|
+
- lib/mspec/helpers/singleton_class.rb
|
126
|
+
- lib/mspec/helpers/stasy.rb
|
77
127
|
- lib/mspec/helpers/tmp.rb
|
78
|
-
- lib/mspec/
|
128
|
+
- lib/mspec/matchers.rb
|
79
129
|
- lib/mspec/matchers/base.rb
|
80
130
|
- lib/mspec/matchers/be_an_instance_of.rb
|
81
131
|
- lib/mspec/matchers/be_ancestor_of.rb
|
82
132
|
- lib/mspec/matchers/be_close.rb
|
133
|
+
- lib/mspec/matchers/be_computed_by.rb
|
134
|
+
- lib/mspec/matchers/be_computed_by_function.rb
|
83
135
|
- lib/mspec/matchers/be_empty.rb
|
84
136
|
- lib/mspec/matchers/be_false.rb
|
85
137
|
- lib/mspec/matchers/be_kind_of.rb
|
138
|
+
- lib/mspec/matchers/be_nan.rb
|
86
139
|
- lib/mspec/matchers/be_nil.rb
|
87
140
|
- lib/mspec/matchers/be_true.rb
|
141
|
+
- lib/mspec/matchers/be_valid_dns_name.rb
|
88
142
|
- lib/mspec/matchers/complain.rb
|
89
143
|
- lib/mspec/matchers/eql.rb
|
90
144
|
- lib/mspec/matchers/equal.rb
|
@@ -97,23 +151,27 @@ files:
|
|
97
151
|
- lib/mspec/matchers/have_instance_variable.rb
|
98
152
|
- lib/mspec/matchers/have_method.rb
|
99
153
|
- lib/mspec/matchers/have_private_instance_method.rb
|
154
|
+
- lib/mspec/matchers/have_private_method.rb
|
100
155
|
- lib/mspec/matchers/have_protected_instance_method.rb
|
101
156
|
- lib/mspec/matchers/have_public_instance_method.rb
|
157
|
+
- lib/mspec/matchers/have_singleton_method.rb
|
102
158
|
- lib/mspec/matchers/include.rb
|
159
|
+
- lib/mspec/matchers/infinity.rb
|
103
160
|
- lib/mspec/matchers/match_yaml.rb
|
104
161
|
- lib/mspec/matchers/method.rb
|
105
162
|
- lib/mspec/matchers/output.rb
|
106
163
|
- lib/mspec/matchers/output_to_fd.rb
|
107
164
|
- lib/mspec/matchers/raise_error.rb
|
108
165
|
- lib/mspec/matchers/respond_to.rb
|
166
|
+
- lib/mspec/matchers/signed_zero.rb
|
109
167
|
- lib/mspec/matchers/stringsymboladapter.rb
|
110
168
|
- lib/mspec/matchers/variable.rb
|
111
|
-
- lib/mspec/
|
169
|
+
- lib/mspec/mocks.rb
|
112
170
|
- lib/mspec/mocks/mock.rb
|
113
171
|
- lib/mspec/mocks/object.rb
|
114
172
|
- lib/mspec/mocks/proxy.rb
|
115
|
-
- lib/mspec/
|
116
|
-
- lib/mspec/runner/actions
|
173
|
+
- lib/mspec/runner.rb
|
174
|
+
- lib/mspec/runner/actions.rb
|
117
175
|
- lib/mspec/runner/actions/filter.rb
|
118
176
|
- lib/mspec/runner/actions/gdb.rb
|
119
177
|
- lib/mspec/runner/actions/tag.rb
|
@@ -121,42 +179,39 @@ files:
|
|
121
179
|
- lib/mspec/runner/actions/tagpurge.rb
|
122
180
|
- lib/mspec/runner/actions/tally.rb
|
123
181
|
- lib/mspec/runner/actions/timer.rb
|
124
|
-
- lib/mspec/runner/actions.rb
|
125
182
|
- lib/mspec/runner/context.rb
|
126
183
|
- lib/mspec/runner/example.rb
|
127
184
|
- lib/mspec/runner/exception.rb
|
185
|
+
- lib/mspec/runner/filters.rb
|
128
186
|
- lib/mspec/runner/filters/match.rb
|
129
187
|
- lib/mspec/runner/filters/profile.rb
|
130
188
|
- lib/mspec/runner/filters/regexp.rb
|
131
189
|
- lib/mspec/runner/filters/tag.rb
|
132
|
-
- lib/mspec/runner/
|
190
|
+
- lib/mspec/runner/formatters.rb
|
133
191
|
- lib/mspec/runner/formatters/describe.rb
|
134
192
|
- lib/mspec/runner/formatters/dotted.rb
|
135
193
|
- lib/mspec/runner/formatters/file.rb
|
136
194
|
- lib/mspec/runner/formatters/html.rb
|
195
|
+
- lib/mspec/runner/formatters/junit.rb
|
137
196
|
- lib/mspec/runner/formatters/method.rb
|
197
|
+
- lib/mspec/runner/formatters/profile.rb
|
138
198
|
- lib/mspec/runner/formatters/specdoc.rb
|
139
199
|
- lib/mspec/runner/formatters/spinner.rb
|
140
200
|
- lib/mspec/runner/formatters/summary.rb
|
141
201
|
- lib/mspec/runner/formatters/unit.rb
|
142
202
|
- lib/mspec/runner/formatters/yaml.rb
|
143
|
-
- lib/mspec/runner/formatters.rb
|
144
203
|
- lib/mspec/runner/mspec.rb
|
145
204
|
- lib/mspec/runner/object.rb
|
146
205
|
- lib/mspec/runner/shared.rb
|
147
206
|
- lib/mspec/runner/tag.rb
|
148
|
-
- lib/mspec/runner.rb
|
149
207
|
- lib/mspec/utils/name_map.rb
|
150
208
|
- lib/mspec/utils/options.rb
|
151
209
|
- lib/mspec/utils/ruby_name.rb
|
152
210
|
- lib/mspec/utils/script.rb
|
153
211
|
- lib/mspec/utils/version.rb
|
154
212
|
- lib/mspec/version.rb
|
155
|
-
-
|
156
|
-
- spec/runner/filters/a.yaml
|
157
|
-
- spec/runner/filters/b.yaml
|
213
|
+
- mspec.gemspec
|
158
214
|
- spec/commands/fixtures/four.txt
|
159
|
-
- spec/runner/tags.txt
|
160
215
|
- spec/commands/fixtures/level2/three_spec.rb
|
161
216
|
- spec/commands/fixtures/one_spec.rb
|
162
217
|
- spec/commands/fixtures/three.rb
|
@@ -170,6 +225,7 @@ files:
|
|
170
225
|
- spec/expectations/should.rb
|
171
226
|
- spec/expectations/should_spec.rb
|
172
227
|
- spec/guards/background_spec.rb
|
228
|
+
- spec/guards/block_device_spec.rb
|
173
229
|
- spec/guards/bug_spec.rb
|
174
230
|
- spec/guards/compliance_spec.rb
|
175
231
|
- spec/guards/conflict_spec.rb
|
@@ -188,34 +244,37 @@ files:
|
|
188
244
|
- spec/guards/user_spec.rb
|
189
245
|
- spec/guards/version_spec.rb
|
190
246
|
- spec/helpers/argv_spec.rb
|
191
|
-
- spec/helpers/bignum_spec.rb
|
192
247
|
- spec/helpers/const_lookup_spec.rb
|
248
|
+
- spec/helpers/datetime_spec.rb
|
193
249
|
- spec/helpers/ducktype_spec.rb
|
194
250
|
- spec/helpers/encode_spec.rb
|
195
251
|
- spec/helpers/enumerator_class_spec.rb
|
196
252
|
- spec/helpers/environment_spec.rb
|
197
253
|
- spec/helpers/fixture_spec.rb
|
198
254
|
- spec/helpers/flunk_spec.rb
|
199
|
-
- spec/helpers/fmode_spec.rb
|
200
255
|
- spec/helpers/fs_spec.rb
|
201
256
|
- spec/helpers/hash_spec.rb
|
202
|
-
- spec/helpers/infinity_spec.rb
|
203
257
|
- spec/helpers/io_spec.rb
|
204
258
|
- spec/helpers/language_version_spec.rb
|
205
259
|
- spec/helpers/mock_to_path_spec.rb
|
206
|
-
- spec/helpers/
|
260
|
+
- spec/helpers/numeric_spec.rb
|
207
261
|
- spec/helpers/ruby_exe_spec.rb
|
208
262
|
- spec/helpers/scratch_spec.rb
|
263
|
+
- spec/helpers/stasy_spec.rb
|
209
264
|
- spec/helpers/tmp_spec.rb
|
210
265
|
- spec/matchers/base_spec.rb
|
211
266
|
- spec/matchers/be_an_instance_of_spec.rb
|
212
267
|
- spec/matchers/be_ancestor_of_spec.rb
|
213
268
|
- spec/matchers/be_close_spec.rb
|
269
|
+
- spec/matchers/be_computed_by_function_spec.rb
|
270
|
+
- spec/matchers/be_computed_by_spec.rb
|
214
271
|
- spec/matchers/be_empty_spec.rb
|
215
272
|
- spec/matchers/be_false_spec.rb
|
216
273
|
- spec/matchers/be_kind_of_spec.rb
|
274
|
+
- spec/matchers/be_nan_spec.rb
|
217
275
|
- spec/matchers/be_nil_spec.rb
|
218
276
|
- spec/matchers/be_true_spec.rb
|
277
|
+
- spec/matchers/be_valid_dns_name_spec.rb
|
219
278
|
- spec/matchers/complain_spec.rb
|
220
279
|
- spec/matchers/eql_spec.rb
|
221
280
|
- spec/matchers/equal_element_spec.rb
|
@@ -228,18 +287,21 @@ files:
|
|
228
287
|
- spec/matchers/have_instance_variable_spec.rb
|
229
288
|
- spec/matchers/have_method_spec.rb
|
230
289
|
- spec/matchers/have_private_instance_method_spec.rb
|
290
|
+
- spec/matchers/have_private_method_spec.rb
|
231
291
|
- spec/matchers/have_protected_instance_method_spec.rb
|
232
292
|
- spec/matchers/have_public_instance_method_spec.rb
|
293
|
+
- spec/matchers/have_singleton_method_spec.rb
|
233
294
|
- spec/matchers/include_spec.rb
|
295
|
+
- spec/matchers/infinity_spec.rb
|
234
296
|
- spec/matchers/match_yaml_spec.rb
|
235
297
|
- spec/matchers/output_spec.rb
|
236
298
|
- spec/matchers/output_to_fd_spec.rb
|
237
299
|
- spec/matchers/raise_error_spec.rb
|
238
300
|
- spec/matchers/respond_to_spec.rb
|
301
|
+
- spec/matchers/signed_zero_spec.rb
|
239
302
|
- spec/matchers/stringsymboladapter_spec.rb
|
240
303
|
- spec/mocks/mock_spec.rb
|
241
304
|
- spec/mocks/proxy_spec.rb
|
242
|
-
- spec/runner/actions/debug_spec.rb
|
243
305
|
- spec/runner/actions/filter_spec.rb
|
244
306
|
- spec/runner/actions/gdb_spec.rb
|
245
307
|
- spec/runner/actions/tag_spec.rb
|
@@ -250,6 +312,8 @@ files:
|
|
250
312
|
- spec/runner/context_spec.rb
|
251
313
|
- spec/runner/example_spec.rb
|
252
314
|
- spec/runner/exception_spec.rb
|
315
|
+
- spec/runner/filters/a.yaml
|
316
|
+
- spec/runner/filters/b.yaml
|
253
317
|
- spec/runner/filters/match_spec.rb
|
254
318
|
- spec/runner/filters/profile_spec.rb
|
255
319
|
- spec/runner/filters/regexp_spec.rb
|
@@ -258,6 +322,7 @@ files:
|
|
258
322
|
- spec/runner/formatters/dotted_spec.rb
|
259
323
|
- spec/runner/formatters/file_spec.rb
|
260
324
|
- spec/runner/formatters/html_spec.rb
|
325
|
+
- spec/runner/formatters/junit_spec.rb
|
261
326
|
- spec/runner/formatters/method_spec.rb
|
262
327
|
- spec/runner/formatters/specdoc_spec.rb
|
263
328
|
- spec/runner/formatters/spinner_spec.rb
|
@@ -267,45 +332,170 @@ files:
|
|
267
332
|
- spec/runner/mspec_spec.rb
|
268
333
|
- spec/runner/shared_spec.rb
|
269
334
|
- spec/runner/tag_spec.rb
|
335
|
+
- spec/runner/tags.txt
|
270
336
|
- spec/spec_helper.rb
|
271
337
|
- spec/utils/name_map_spec.rb
|
272
338
|
- spec/utils/options_spec.rb
|
273
339
|
- spec/utils/script_spec.rb
|
274
340
|
- spec/utils/version_spec.rb
|
275
|
-
- Rakefile
|
276
|
-
- README
|
277
|
-
- LICENSE
|
278
|
-
has_rdoc: true
|
279
341
|
homepage: http://rubyspec.org
|
280
342
|
licenses: []
|
281
|
-
|
282
343
|
post_install_message:
|
283
|
-
rdoc_options:
|
344
|
+
rdoc_options:
|
284
345
|
- --title
|
285
346
|
- MSpec Gem
|
286
347
|
- --main
|
287
348
|
- README
|
288
349
|
- --line-numbers
|
289
|
-
require_paths:
|
350
|
+
require_paths:
|
290
351
|
- lib
|
291
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
352
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
353
|
+
none: false
|
354
|
+
requirements:
|
355
|
+
- - ! '>='
|
356
|
+
- !ruby/object:Gem::Version
|
357
|
+
version: '0'
|
358
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
359
|
+
none: false
|
360
|
+
requirements:
|
361
|
+
- - ! '>='
|
362
|
+
- !ruby/object:Gem::Version
|
363
|
+
version: '0'
|
303
364
|
requirements: []
|
304
|
-
|
305
365
|
rubyforge_project: http://rubyforge.org/projects/mspec
|
306
|
-
rubygems_version: 1.
|
366
|
+
rubygems_version: 1.8.25
|
307
367
|
signing_key:
|
308
|
-
specification_version:
|
309
|
-
summary: MSpec is a specialized framework that is syntax-compatible with RSpec for
|
310
|
-
|
311
|
-
|
368
|
+
specification_version: 3
|
369
|
+
summary: MSpec is a specialized framework that is syntax-compatible with RSpec for
|
370
|
+
basic things like describe, it blocks and before, after actions. MSpec contains
|
371
|
+
additional features that assist in writing the RubySpecs used by multiple Ruby implementations.
|
372
|
+
Also, MSpec attempts to use the simplest Ruby language features so that beginning
|
373
|
+
Ruby implementations can run it.
|
374
|
+
test_files:
|
375
|
+
- spec/commands/fixtures/four.txt
|
376
|
+
- spec/commands/fixtures/level2/three_spec.rb
|
377
|
+
- spec/commands/fixtures/one_spec.rb
|
378
|
+
- spec/commands/fixtures/three.rb
|
379
|
+
- spec/commands/fixtures/two_spec.rb
|
380
|
+
- spec/commands/mkspec_spec.rb
|
381
|
+
- spec/commands/mspec_ci_spec.rb
|
382
|
+
- spec/commands/mspec_run_spec.rb
|
383
|
+
- spec/commands/mspec_spec.rb
|
384
|
+
- spec/commands/mspec_tag_spec.rb
|
385
|
+
- spec/expectations/expectations_spec.rb
|
386
|
+
- spec/expectations/should.rb
|
387
|
+
- spec/expectations/should_spec.rb
|
388
|
+
- spec/guards/background_spec.rb
|
389
|
+
- spec/guards/block_device_spec.rb
|
390
|
+
- spec/guards/bug_spec.rb
|
391
|
+
- spec/guards/compliance_spec.rb
|
392
|
+
- spec/guards/conflict_spec.rb
|
393
|
+
- spec/guards/endian_spec.rb
|
394
|
+
- spec/guards/extensions_spec.rb
|
395
|
+
- spec/guards/feature_spec.rb
|
396
|
+
- spec/guards/guard_spec.rb
|
397
|
+
- spec/guards/noncompliance_spec.rb
|
398
|
+
- spec/guards/platform_spec.rb
|
399
|
+
- spec/guards/quarantine_spec.rb
|
400
|
+
- spec/guards/runner_spec.rb
|
401
|
+
- spec/guards/specified_spec.rb
|
402
|
+
- spec/guards/superuser_spec.rb
|
403
|
+
- spec/guards/support_spec.rb
|
404
|
+
- spec/guards/tty_spec.rb
|
405
|
+
- spec/guards/user_spec.rb
|
406
|
+
- spec/guards/version_spec.rb
|
407
|
+
- spec/helpers/argv_spec.rb
|
408
|
+
- spec/helpers/const_lookup_spec.rb
|
409
|
+
- spec/helpers/datetime_spec.rb
|
410
|
+
- spec/helpers/ducktype_spec.rb
|
411
|
+
- spec/helpers/encode_spec.rb
|
412
|
+
- spec/helpers/enumerator_class_spec.rb
|
413
|
+
- spec/helpers/environment_spec.rb
|
414
|
+
- spec/helpers/fixture_spec.rb
|
415
|
+
- spec/helpers/flunk_spec.rb
|
416
|
+
- spec/helpers/fs_spec.rb
|
417
|
+
- spec/helpers/hash_spec.rb
|
418
|
+
- spec/helpers/io_spec.rb
|
419
|
+
- spec/helpers/language_version_spec.rb
|
420
|
+
- spec/helpers/mock_to_path_spec.rb
|
421
|
+
- spec/helpers/numeric_spec.rb
|
422
|
+
- spec/helpers/ruby_exe_spec.rb
|
423
|
+
- spec/helpers/scratch_spec.rb
|
424
|
+
- spec/helpers/stasy_spec.rb
|
425
|
+
- spec/helpers/tmp_spec.rb
|
426
|
+
- spec/matchers/base_spec.rb
|
427
|
+
- spec/matchers/be_an_instance_of_spec.rb
|
428
|
+
- spec/matchers/be_ancestor_of_spec.rb
|
429
|
+
- spec/matchers/be_close_spec.rb
|
430
|
+
- spec/matchers/be_computed_by_function_spec.rb
|
431
|
+
- spec/matchers/be_computed_by_spec.rb
|
432
|
+
- spec/matchers/be_empty_spec.rb
|
433
|
+
- spec/matchers/be_false_spec.rb
|
434
|
+
- spec/matchers/be_kind_of_spec.rb
|
435
|
+
- spec/matchers/be_nan_spec.rb
|
436
|
+
- spec/matchers/be_nil_spec.rb
|
437
|
+
- spec/matchers/be_true_spec.rb
|
438
|
+
- spec/matchers/be_valid_dns_name_spec.rb
|
439
|
+
- spec/matchers/complain_spec.rb
|
440
|
+
- spec/matchers/eql_spec.rb
|
441
|
+
- spec/matchers/equal_element_spec.rb
|
442
|
+
- spec/matchers/equal_spec.rb
|
443
|
+
- spec/matchers/equal_utf16_spec.rb
|
444
|
+
- spec/matchers/have_class_variable_spec.rb
|
445
|
+
- spec/matchers/have_constant_spec.rb
|
446
|
+
- spec/matchers/have_data_spec.rb
|
447
|
+
- spec/matchers/have_instance_method_spec.rb
|
448
|
+
- spec/matchers/have_instance_variable_spec.rb
|
449
|
+
- spec/matchers/have_method_spec.rb
|
450
|
+
- spec/matchers/have_private_instance_method_spec.rb
|
451
|
+
- spec/matchers/have_private_method_spec.rb
|
452
|
+
- spec/matchers/have_protected_instance_method_spec.rb
|
453
|
+
- spec/matchers/have_public_instance_method_spec.rb
|
454
|
+
- spec/matchers/have_singleton_method_spec.rb
|
455
|
+
- spec/matchers/include_spec.rb
|
456
|
+
- spec/matchers/infinity_spec.rb
|
457
|
+
- spec/matchers/match_yaml_spec.rb
|
458
|
+
- spec/matchers/output_spec.rb
|
459
|
+
- spec/matchers/output_to_fd_spec.rb
|
460
|
+
- spec/matchers/raise_error_spec.rb
|
461
|
+
- spec/matchers/respond_to_spec.rb
|
462
|
+
- spec/matchers/signed_zero_spec.rb
|
463
|
+
- spec/matchers/stringsymboladapter_spec.rb
|
464
|
+
- spec/mocks/mock_spec.rb
|
465
|
+
- spec/mocks/proxy_spec.rb
|
466
|
+
- spec/runner/actions/filter_spec.rb
|
467
|
+
- spec/runner/actions/gdb_spec.rb
|
468
|
+
- spec/runner/actions/tag_spec.rb
|
469
|
+
- spec/runner/actions/taglist_spec.rb
|
470
|
+
- spec/runner/actions/tagpurge_spec.rb
|
471
|
+
- spec/runner/actions/tally_spec.rb
|
472
|
+
- spec/runner/actions/timer_spec.rb
|
473
|
+
- spec/runner/context_spec.rb
|
474
|
+
- spec/runner/example_spec.rb
|
475
|
+
- spec/runner/exception_spec.rb
|
476
|
+
- spec/runner/filters/a.yaml
|
477
|
+
- spec/runner/filters/b.yaml
|
478
|
+
- spec/runner/filters/match_spec.rb
|
479
|
+
- spec/runner/filters/profile_spec.rb
|
480
|
+
- spec/runner/filters/regexp_spec.rb
|
481
|
+
- spec/runner/filters/tag_spec.rb
|
482
|
+
- spec/runner/formatters/describe_spec.rb
|
483
|
+
- spec/runner/formatters/dotted_spec.rb
|
484
|
+
- spec/runner/formatters/file_spec.rb
|
485
|
+
- spec/runner/formatters/html_spec.rb
|
486
|
+
- spec/runner/formatters/junit_spec.rb
|
487
|
+
- spec/runner/formatters/method_spec.rb
|
488
|
+
- spec/runner/formatters/specdoc_spec.rb
|
489
|
+
- spec/runner/formatters/spinner_spec.rb
|
490
|
+
- spec/runner/formatters/summary_spec.rb
|
491
|
+
- spec/runner/formatters/unit_spec.rb
|
492
|
+
- spec/runner/formatters/yaml_spec.rb
|
493
|
+
- spec/runner/mspec_spec.rb
|
494
|
+
- spec/runner/shared_spec.rb
|
495
|
+
- spec/runner/tag_spec.rb
|
496
|
+
- spec/runner/tags.txt
|
497
|
+
- spec/spec_helper.rb
|
498
|
+
- spec/utils/name_map_spec.rb
|
499
|
+
- spec/utils/options_spec.rb
|
500
|
+
- spec/utils/script_spec.rb
|
501
|
+
- spec/utils/version_spec.rb
|