dchelimsky-rspec 1.1.11.6 → 1.1.11.7
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/History.txt +19 -2
- data/Manifest.txt +3 -1
- data/examples/passing/{multi_threaded_behaviour_runner.rb → multi_threaded_example_group_runner.rb} +1 -3
- data/lib/spec/example/example_group_methods.rb +2 -2
- data/lib/spec/expectations/handler.rb +10 -25
- data/lib/spec/matchers/be.rb +7 -2
- data/lib/spec/matchers/generated_descriptions.rb +1 -1
- data/lib/spec/matchers/match_array.rb +4 -0
- data/lib/spec/matchers/operator_matcher.rb +11 -17
- data/lib/spec/mocks/argument_constraints.rb +34 -0
- data/lib/spec/runner/example_group_runner.rb +16 -5
- data/lib/spec/runner/options.rb +1 -1
- data/lib/spec/version.rb +2 -2
- data/rspec.gemspec +4 -4
- data/spec/spec/expectations/extensions/object_spec.rb +0 -50
- data/spec/spec/matchers/be_spec.rb +22 -0
- data/spec/spec/matchers/handler_spec.rb +0 -39
- data/spec/spec/mocks/passing_mock_argument_constraints_spec.rb +18 -3
- data/spec/spec/runner/example_group_runner_spec.rb +33 -0
- data/spec/spec/runner/resources/utf8_encoded.rb +7 -0
- metadata +6 -4
data/History.txt
CHANGED
@@ -1,9 +1,24 @@
|
|
1
1
|
=== Maintenance
|
2
2
|
|
3
|
-
|
3
|
+
WARNING: there was a stub/mock bug in 1.1.11 that allowed a structure that was
|
4
|
+
not intended:
|
5
|
+
|
6
|
+
obj.stub!(:msg)
|
7
|
+
obj.msg
|
8
|
+
obj.should_receive(:msg)
|
9
|
+
|
10
|
+
That would pass in 1.1.11, but should not have been allowed to, since the
|
11
|
+
message is received before the expectation is set. This was reported (#637)
|
12
|
+
and fixed for release 1.1.12, but may cause unexpected failures if you had
|
13
|
+
examples set up as above.
|
14
|
+
|
15
|
+
WARNING: mock.should_receive(:msg).with(an_instance_of(klass)) now correctly uses instance_of? instead of kind_of?. This may break some existing code examples, but the fix is to just use kind_of instead of an_instance_of
|
16
|
+
|
17
|
+
* 3 deprecations
|
4
18
|
|
5
19
|
* deprecated ExampleMethods#implementation_backtrace - use ExampleMethods#backtrace instead
|
6
20
|
* deprecated ExampleGroupMethods#example_group_backtrace - use ExampleGroupMethods#backtrace instead
|
21
|
+
* deprecated Spec::Example::BehaviourRunner class (likely that nobody is using this)
|
7
22
|
|
8
23
|
* 6 major enhancements
|
9
24
|
|
@@ -14,7 +29,7 @@
|
|
14
29
|
* hash_including mock argument matcher can now accept just keys, key/value pairs, or both (David Krmpotic)
|
15
30
|
* added hash_not_including mock argument matcher (David Krmpotic). Closes #634.
|
16
31
|
|
17
|
-
*
|
32
|
+
* 9 minor enhancements
|
18
33
|
|
19
34
|
* should throw_symbol accepts an optional argument: should throw_symbol(:sym, arg)
|
20
35
|
* fixed --line for jruby (Zach Moazeni)
|
@@ -23,6 +38,8 @@
|
|
23
38
|
* SpecParser can't handle backtrace paths with colons (John-Mason P. Shackelford). Closes #505.
|
24
39
|
* html formatter (and subsequently the textmate formatter) header fills in completely when running a single example
|
25
40
|
* config.include now accepts an array of types (config.include(Helpers, :type => [:view, :controller]))
|
41
|
+
* added be_a and be_an expectation matchers
|
42
|
+
* added instance_of and kind_of mock argument matchers
|
26
43
|
|
27
44
|
* 9 bug fixes
|
28
45
|
|
data/Manifest.txt
CHANGED
@@ -37,7 +37,7 @@ examples/passing/io_processor.rb
|
|
37
37
|
examples/passing/io_processor_spec.rb
|
38
38
|
examples/passing/legacy_spec.rb
|
39
39
|
examples/passing/mocking_example.rb
|
40
|
-
examples/passing/
|
40
|
+
examples/passing/multi_threaded_example_group_runner.rb
|
41
41
|
examples/passing/nested_classes_example.rb
|
42
42
|
examples/passing/partial_mock_example.rb
|
43
43
|
examples/passing/pending_example.rb
|
@@ -297,6 +297,7 @@ spec/spec/runner/command_line_spec.rb
|
|
297
297
|
spec/spec/runner/configuration_spec.rb
|
298
298
|
spec/spec/runner/drb_command_line_spec.rb
|
299
299
|
spec/spec/runner/empty_file.txt
|
300
|
+
spec/spec/runner/example_group_runner_spec.rb
|
300
301
|
spec/spec/runner/examples.txt
|
301
302
|
spec/spec/runner/failed.txt
|
302
303
|
spec/spec/runner/formatter/base_formatter_spec.rb
|
@@ -338,6 +339,7 @@ spec/spec/runner/resources/a_bar.rb
|
|
338
339
|
spec/spec/runner/resources/a_foo.rb
|
339
340
|
spec/spec/runner/resources/a_spec.rb
|
340
341
|
spec/spec/runner/resources/custom_example_group_runner.rb
|
342
|
+
spec/spec/runner/resources/utf8_encoded.rb
|
341
343
|
spec/spec/runner/spec.opts
|
342
344
|
spec/spec/runner/spec_drb.opts
|
343
345
|
spec/spec/runner/spec_parser/spec_parser_fixture.rb
|
@@ -136,7 +136,7 @@ WARNING
|
|
136
136
|
# end
|
137
137
|
# end
|
138
138
|
def predicate_matchers
|
139
|
-
@predicate_matchers ||= {
|
139
|
+
@predicate_matchers ||= {}
|
140
140
|
end
|
141
141
|
|
142
142
|
# Creates an instance of the current example group class and adds it to
|
@@ -354,7 +354,7 @@ WARNING
|
|
354
354
|
end
|
355
355
|
|
356
356
|
def add_method_examples(examples)
|
357
|
-
instance_methods.
|
357
|
+
instance_methods.each do |method_name|
|
358
358
|
if example_method?(method_name)
|
359
359
|
examples << new(method_name) do
|
360
360
|
__send__(method_name)
|
@@ -4,41 +4,26 @@ module Spec
|
|
4
4
|
|
5
5
|
class ExpectationMatcherHandler
|
6
6
|
def self.handle_matcher(actual, matcher, &block)
|
7
|
-
::Spec::Matchers.last_should =
|
8
|
-
|
7
|
+
::Spec::Matchers.last_should = :should
|
8
|
+
::Spec::Matchers.last_matcher = matcher
|
9
|
+
|
10
|
+
return ::Spec::Matchers::PositiveOperatorMatcher.new(actual) if matcher.nil?
|
9
11
|
|
10
|
-
unless matcher.respond_to?(:matches?)
|
11
|
-
raise InvalidMatcherError, "Expected a matcher, got #{matcher.inspect}."
|
12
|
-
end
|
13
|
-
|
14
12
|
match = matcher.matches?(actual, &block)
|
15
|
-
::Spec::
|
16
|
-
Spec::Expectations.fail_with(matcher.failure_message) unless match
|
13
|
+
::Spec::Expectations.fail_with(matcher.failure_message) unless match
|
17
14
|
match
|
18
15
|
end
|
19
16
|
end
|
20
17
|
|
21
18
|
class NegativeExpectationMatcherHandler
|
22
19
|
def self.handle_matcher(actual, matcher, &block)
|
23
|
-
::Spec::Matchers.last_should =
|
24
|
-
|
25
|
-
|
26
|
-
unless matcher.respond_to?(:matches?)
|
27
|
-
raise InvalidMatcherError, "Expected a matcher, got #{matcher.inspect}."
|
28
|
-
end
|
20
|
+
::Spec::Matchers.last_should = :should_not
|
21
|
+
::Spec::Matchers.last_matcher = matcher
|
29
22
|
|
30
|
-
|
31
|
-
|
32
|
-
<<-EOF
|
33
|
-
Matcher does not support should_not.
|
34
|
-
See Spec::Matchers for more information
|
35
|
-
about matchers.
|
36
|
-
EOF
|
37
|
-
)
|
38
|
-
end
|
23
|
+
return ::Spec::Matchers::NegativeOperatorMatcher.new(actual) if matcher.nil?
|
24
|
+
|
39
25
|
match = matcher.matches?(actual, &block)
|
40
|
-
::Spec::
|
41
|
-
Spec::Expectations.fail_with(matcher.negative_failure_message) if match
|
26
|
+
::Spec::Expectations.fail_with(matcher.negative_failure_message) if match
|
42
27
|
match
|
43
28
|
end
|
44
29
|
end
|
data/lib/spec/matchers/be.rb
CHANGED
@@ -192,12 +192,17 @@ it reads really poorly.
|
|
192
192
|
# target.should_not be_nil
|
193
193
|
#
|
194
194
|
# collection.should be_empty #passes if target.empty?
|
195
|
-
# "this string".should be_an_intance_of(String)
|
196
|
-
#
|
197
195
|
# target.should_not be_empty #passes unless target.empty?
|
198
196
|
# target.should_not be_old_enough(16) #passes unless target.old_enough?(16)
|
199
197
|
def be(*args)
|
200
198
|
Matchers::Be.new(*args)
|
201
199
|
end
|
200
|
+
|
201
|
+
# passes if target.kind_of?(klass)
|
202
|
+
def be_a(klass)
|
203
|
+
be_a_kind_of(klass)
|
204
|
+
end
|
205
|
+
|
206
|
+
alias_method :be_an, :be_a
|
202
207
|
end
|
203
208
|
end
|
@@ -2,16 +2,18 @@ module Spec
|
|
2
2
|
module Matchers
|
3
3
|
|
4
4
|
class OperatorMatcher
|
5
|
-
|
5
|
+
class << self
|
6
|
+
def registry
|
7
|
+
@registry ||= Hash.new {|h,k| h[k] = {}}
|
8
|
+
end
|
6
9
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
end
|
10
|
+
def register(klass, operator, matcher)
|
11
|
+
registry[klass][operator] = matcher
|
12
|
+
end
|
11
13
|
|
12
|
-
|
13
|
-
|
14
|
-
|
14
|
+
def get(klass, operator)
|
15
|
+
registry[klass][operator]
|
16
|
+
end
|
15
17
|
end
|
16
18
|
|
17
19
|
def initialize(actual)
|
@@ -21,7 +23,7 @@ module Spec
|
|
21
23
|
def self.use_custom_matcher_or_delegate(operator)
|
22
24
|
define_method(operator) do |expected|
|
23
25
|
if matcher = OperatorMatcher.get(@actual.class, operator)
|
24
|
-
|
26
|
+
@actual.send(::Spec::Matchers.last_should, matcher.new(expected))
|
25
27
|
else
|
26
28
|
::Spec::Matchers.last_matcher = self
|
27
29
|
@operator, @expected = operator, expected
|
@@ -45,10 +47,6 @@ module Spec
|
|
45
47
|
end
|
46
48
|
|
47
49
|
class PositiveOperatorMatcher < OperatorMatcher #:nodoc:
|
48
|
-
def matcher_method
|
49
|
-
:should
|
50
|
-
end
|
51
|
-
|
52
50
|
def __delegate_operator(actual, operator, expected)
|
53
51
|
return true if actual.__send__(operator, expected)
|
54
52
|
if ['==','===', '=~'].include?(operator)
|
@@ -61,10 +59,6 @@ module Spec
|
|
61
59
|
end
|
62
60
|
|
63
61
|
class NegativeOperatorMatcher < OperatorMatcher #:nodoc:
|
64
|
-
def matcher_method
|
65
|
-
:should_not
|
66
|
-
end
|
67
|
-
|
68
62
|
def __delegate_operator(actual, operator, expected)
|
69
63
|
return true unless actual.__send__(operator, expected)
|
70
64
|
return fail_with_message("expected not: #{operator} #{expected.inspect},\n got: #{operator.gsub(/./, ' ')} #{actual.inspect}")
|
@@ -121,6 +121,26 @@ module Spec
|
|
121
121
|
@given == expected
|
122
122
|
end
|
123
123
|
end
|
124
|
+
|
125
|
+
class InstanceOf
|
126
|
+
def initialize(klass)
|
127
|
+
@klass = klass
|
128
|
+
end
|
129
|
+
|
130
|
+
def ==(actual)
|
131
|
+
actual.instance_of?(@klass)
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
class KindOf
|
136
|
+
def initialize(klass)
|
137
|
+
@klass = klass
|
138
|
+
end
|
139
|
+
|
140
|
+
def ==(actual)
|
141
|
+
actual.kind_of?(@klass)
|
142
|
+
end
|
143
|
+
end
|
124
144
|
|
125
145
|
# :call-seq:
|
126
146
|
# object.should_receive(:message).with(any_args())
|
@@ -191,6 +211,20 @@ module Spec
|
|
191
211
|
HashNotIncludingConstraint.new(anythingize_lonely_keys(*args))
|
192
212
|
end
|
193
213
|
|
214
|
+
# Passes if arg.instance_of?(klass)
|
215
|
+
def instance_of(klass)
|
216
|
+
InstanceOf.new(klass)
|
217
|
+
end
|
218
|
+
|
219
|
+
alias_method :an_instance_of, :instance_of
|
220
|
+
|
221
|
+
# Passes if arg.kind_of?(klass)
|
222
|
+
def kind_of(klass)
|
223
|
+
KindOf.new(klass)
|
224
|
+
end
|
225
|
+
|
226
|
+
alias_method :a_kind_of, :kind_of
|
227
|
+
|
194
228
|
private
|
195
229
|
|
196
230
|
def anythingize_lonely_keys(*args)
|
@@ -10,16 +10,17 @@ module Spec
|
|
10
10
|
# responsibility of the ExampleGroupRunner. Some implementations (like)
|
11
11
|
# the one using DRb may choose *not* to load files, but instead tell
|
12
12
|
# someone else to do it over the wire.
|
13
|
+
$KCODE = 'u' if RUBY_VERSION < '1.9'
|
13
14
|
files.each do |file|
|
14
15
|
load file
|
15
16
|
end
|
16
17
|
end
|
17
18
|
|
18
|
-
def run
|
19
|
+
def run
|
19
20
|
prepare
|
20
21
|
success = true
|
21
22
|
example_groups.each do |example_group|
|
22
|
-
success = success & example_group.run(
|
23
|
+
success = success & example_group.run(@options)
|
23
24
|
end
|
24
25
|
return success
|
25
26
|
ensure
|
@@ -53,7 +54,17 @@ module Spec
|
|
53
54
|
@options.number_of_examples
|
54
55
|
end
|
55
56
|
end
|
56
|
-
|
57
|
-
BehaviourRunner
|
57
|
+
|
58
|
+
class BehaviourRunner < ExampleGroupRunner
|
59
|
+
def initialize(options)
|
60
|
+
Kernel.warn <<-WARNING
|
61
|
+
DEPRECATED: The BeheviourRunner class is deprecated and will
|
62
|
+
be removed from rspec-1.2.
|
63
|
+
|
64
|
+
Use ExampleGroupRunner instead.
|
65
|
+
WARNING
|
66
|
+
super
|
67
|
+
end
|
68
|
+
end
|
58
69
|
end
|
59
|
-
end
|
70
|
+
end
|
data/lib/spec/runner/options.rb
CHANGED
data/lib/spec/version.rb
CHANGED
data/rspec.gemspec
CHANGED
@@ -2,23 +2,23 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{rspec}
|
5
|
-
s.version = "1.1.11.
|
5
|
+
s.version = "1.1.11.7"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["RSpec Development Team"]
|
9
|
-
s.date = %q{2009-01-
|
9
|
+
s.date = %q{2009-01-09}
|
10
10
|
s.description = %q{Behaviour Driven Development for Ruby.}
|
11
11
|
s.email = ["rspec-devel@rubyforge.org"]
|
12
12
|
s.executables = ["autospec", "spec"]
|
13
13
|
s.extra_rdoc_files = ["History.txt", "License.txt", "Manifest.txt", "README.txt", "TODO.txt", "examples/failing/README.txt", "examples/passing/priority.txt", "spec/spec/runner/empty_file.txt", "spec/spec/runner/examples.txt", "spec/spec/runner/failed.txt"]
|
14
|
-
s.files = [".autotest", "History.txt", "License.txt", "Manifest.txt", "README.txt", "Rakefile", "TODO.txt", "bin/autospec", "bin/spec", "examples/failing/README.txt", "examples/failing/diffing_spec.rb", "examples/failing/failing_autogenerated_docstrings_example.rb", "examples/failing/failure_in_after.rb", "examples/failing/failure_in_before.rb", "examples/failing/mocking_example.rb", "examples/failing/mocking_with_flexmock.rb", "examples/failing/mocking_with_mocha.rb", "examples/failing/mocking_with_rr.rb", "examples/failing/partial_mock_example.rb", "examples/failing/predicate_example.rb", "examples/failing/raising_example.rb", "examples/failing/spec_helper.rb", "examples/failing/syntax_error_example.rb", "examples/failing/team_spec.rb", "examples/failing/timeout_behaviour.rb", "examples/passing/autogenerated_docstrings_example.rb", "examples/passing/before_and_after_example.rb", "examples/passing/behave_as_example.rb", "examples/passing/custom_expectation_matchers.rb", "examples/passing/custom_formatter.rb", "examples/passing/dynamic_spec.rb", "examples/passing/file_accessor.rb", "examples/passing/file_accessor_spec.rb", "examples/passing/greeter_spec.rb", "examples/passing/helper_method_example.rb", "examples/passing/io_processor.rb", "examples/passing/io_processor_spec.rb", "examples/passing/legacy_spec.rb", "examples/passing/mocking_example.rb", "examples/passing/multi_threaded_behaviour_runner.rb", "examples/passing/nested_classes_example.rb", "examples/passing/partial_mock_example.rb", "examples/passing/pending_example.rb", "examples/passing/predicate_example.rb", "examples/passing/priority.txt", "examples/passing/shared_example_group_example.rb", "examples/passing/shared_stack_examples.rb", "examples/passing/simple_matcher_example.rb", "examples/passing/spec_helper.rb", "examples/passing/stack.rb", "examples/passing/stack_spec.rb", "examples/passing/stack_spec_with_nested_example_groups.rb", "examples/passing/stubbing_example.rb", "examples/passing/yielding_example.rb", "examples/ruby1.9.compatibility/access_to_constants_spec.rb", "features/before_and_after_blocks/before_and_after_blocks.feature", "features/example_groups/autogenerated_docstrings.feature", "features/example_groups/example_group_with_should_methods.feature", "features/example_groups/nested_groups.feature", "features/example_groups/output.feature", "features/interop/examples_and_tests_together.feature", "features/interop/test_but_not_test_unit.feature", "features/interop/test_case_with_should_methods.feature", "features/mock_framework_integration/use_flexmock.feature", "features/step_definitions/running_rspec.rb", "features/support/env.rb", "features/support/helpers/cmdline.rb", "features/support/helpers/story_helper.rb", "features/support/matchers/smart_match.rb", "init.rb", "lib/adapters/mock_frameworks/flexmock.rb", "lib/adapters/mock_frameworks/mocha.rb", "lib/adapters/mock_frameworks/rr.rb", "lib/adapters/mock_frameworks/rspec.rb", "lib/autotest/discover.rb", "lib/autotest/rspec.rb", "lib/spec.rb", "lib/spec/dsl.rb", "lib/spec/dsl/main.rb", "lib/spec/example.rb", "lib/spec/example/before_and_after_hooks.rb", "lib/spec/example/errors.rb", "lib/spec/example/example_group.rb", "lib/spec/example/example_group_factory.rb", "lib/spec/example/example_group_methods.rb", "lib/spec/example/example_matcher.rb", "lib/spec/example/example_methods.rb", "lib/spec/example/module_reopening_fix.rb", "lib/spec/example/pending.rb", "lib/spec/example/shared_example_group.rb", "lib/spec/expectations.rb", "lib/spec/expectations/differs/default.rb", "lib/spec/expectations/errors.rb", "lib/spec/expectations/extensions.rb", "lib/spec/expectations/extensions/object.rb", "lib/spec/expectations/extensions/string_and_symbol.rb", "lib/spec/expectations/handler.rb", "lib/spec/interop/test.rb", "lib/spec/interop/test/unit/autorunner.rb", "lib/spec/interop/test/unit/testcase.rb", "lib/spec/interop/test/unit/testresult.rb", "lib/spec/interop/test/unit/testsuite_adapter.rb", "lib/spec/interop/test/unit/ui/console/testrunner.rb", "lib/spec/matchers.rb", "lib/spec/matchers/be.rb", "lib/spec/matchers/be_close.rb", "lib/spec/matchers/change.rb", "lib/spec/matchers/eql.rb", "lib/spec/matchers/equal.rb", "lib/spec/matchers/errors.rb", "lib/spec/matchers/exist.rb", "lib/spec/matchers/generated_descriptions.rb", "lib/spec/matchers/has.rb", "lib/spec/matchers/have.rb", "lib/spec/matchers/include.rb", "lib/spec/matchers/match.rb", "lib/spec/matchers/match_array.rb", "lib/spec/matchers/method_missing.rb", "lib/spec/matchers/operator_matcher.rb", "lib/spec/matchers/raise_error.rb", "lib/spec/matchers/respond_to.rb", "lib/spec/matchers/satisfy.rb", "lib/spec/matchers/simple_matcher.rb", "lib/spec/matchers/throw_symbol.rb", "lib/spec/matchers/wrap_expectation.rb", "lib/spec/mocks.rb", "lib/spec/mocks/argument_constraints.rb", "lib/spec/mocks/argument_expectation.rb", "lib/spec/mocks/error_generator.rb", "lib/spec/mocks/errors.rb", "lib/spec/mocks/extensions.rb", "lib/spec/mocks/extensions/object.rb", "lib/spec/mocks/framework.rb", "lib/spec/mocks/message_expectation.rb", "lib/spec/mocks/methods.rb", "lib/spec/mocks/mock.rb", "lib/spec/mocks/order_group.rb", "lib/spec/mocks/proxy.rb", "lib/spec/mocks/space.rb", "lib/spec/mocks/spec_methods.rb", "lib/spec/rake/spectask.rb", "lib/spec/rake/verify_rcov.rb", "lib/spec/ruby.rb", "lib/spec/runner.rb", "lib/spec/runner/backtrace_tweaker.rb", "lib/spec/runner/class_and_arguments_parser.rb", "lib/spec/runner/command_line.rb", "lib/spec/runner/configuration.rb", "lib/spec/runner/drb_command_line.rb", "lib/spec/runner/example_group_runner.rb", "lib/spec/runner/formatter/base_formatter.rb", "lib/spec/runner/formatter/base_text_formatter.rb", "lib/spec/runner/formatter/failing_example_groups_formatter.rb", "lib/spec/runner/formatter/failing_examples_formatter.rb", "lib/spec/runner/formatter/html_formatter.rb", "lib/spec/runner/formatter/nested_text_formatter.rb", "lib/spec/runner/formatter/profile_formatter.rb", "lib/spec/runner/formatter/progress_bar_formatter.rb", "lib/spec/runner/formatter/snippet_extractor.rb", "lib/spec/runner/formatter/specdoc_formatter.rb", "lib/spec/runner/formatter/story/html_formatter.rb", "lib/spec/runner/formatter/story/plain_text_formatter.rb", "lib/spec/runner/formatter/story/progress_bar_formatter.rb", "lib/spec/runner/formatter/text_mate_formatter.rb", "lib/spec/runner/heckle_runner.rb", "lib/spec/runner/heckle_runner_unsupported.rb", "lib/spec/runner/option_parser.rb", "lib/spec/runner/options.rb", "lib/spec/runner/reporter.rb", "lib/spec/runner/spec_parser.rb", "lib/spec/story.rb", "lib/spec/story/extensions.rb", "lib/spec/story/extensions/main.rb", "lib/spec/story/extensions/regexp.rb", "lib/spec/story/extensions/string.rb", "lib/spec/story/given_scenario.rb", "lib/spec/story/runner.rb", "lib/spec/story/runner/plain_text_story_runner.rb", "lib/spec/story/runner/scenario_collector.rb", "lib/spec/story/runner/scenario_runner.rb", "lib/spec/story/runner/story_mediator.rb", "lib/spec/story/runner/story_parser.rb", "lib/spec/story/runner/story_runner.rb", "lib/spec/story/scenario.rb", "lib/spec/story/step.rb", "lib/spec/story/step_group.rb", "lib/spec/story/step_mother.rb", "lib/spec/story/story.rb", "lib/spec/story/world.rb", "lib/spec/version.rb", "resources/rake/examples.rake", "resources/rake/examples_with_rcov.rake", "resources/rake/failing_examples_with_html.rake", "resources/rake/verify_rcov.rake", "resources/spec/example_group_with_should_methods.rb", "resources/spec/simple_spec.rb", "resources/spec/spec_with_flexmock.rb", "resources/test/spec_and_test_together.rb", "resources/test/spec_including_test_but_not_unit.rb", "resources/test/test_case_with_should_methods.rb", "rspec.gemspec", "spec/README.jruby", "spec/autotest/autotest_helper.rb", "spec/autotest/autotest_matchers.rb", "spec/autotest/discover_spec.rb", "spec/autotest/failed_results_re_spec.rb", "spec/autotest/rspec_spec.rb", "spec/rspec_suite.rb", "spec/ruby_forker.rb", "spec/spec.opts", "spec/spec/dsl/main_spec.rb", "spec/spec/example/example_group_class_definition_spec.rb", "spec/spec/example/example_group_factory_spec.rb", "spec/spec/example/example_group_methods_spec.rb", "spec/spec/example/example_group_spec.rb", "spec/spec/example/example_matcher_spec.rb", "spec/spec/example/example_methods_spec.rb", "spec/spec/example/helper_method_spec.rb", "spec/spec/example/nested_example_group_spec.rb", "spec/spec/example/pending_module_spec.rb", "spec/spec/example/predicate_matcher_spec.rb", "spec/spec/example/shared_example_group_spec.rb", "spec/spec/example/subclassing_example_group_spec.rb", "spec/spec/expectations/differs/default_spec.rb", "spec/spec/expectations/extensions/object_spec.rb", "spec/spec/expectations/fail_with_spec.rb", "spec/spec/expectations/wrap_expectation_spec.rb", "spec/spec/interop/test/unit/resources/spec_that_fails.rb", "spec/spec/interop/test/unit/resources/spec_that_passes.rb", "spec/spec/interop/test/unit/resources/spec_with_errors.rb", "spec/spec/interop/test/unit/resources/spec_with_options_hash.rb", "spec/spec/interop/test/unit/resources/test_case_that_fails.rb", "spec/spec/interop/test/unit/resources/test_case_that_passes.rb", "spec/spec/interop/test/unit/resources/test_case_with_errors.rb", "spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb", "spec/spec/interop/test/unit/spec_spec.rb", "spec/spec/interop/test/unit/test_unit_spec_helper.rb", "spec/spec/interop/test/unit/testcase_spec.rb", "spec/spec/interop/test/unit/testsuite_adapter_spec.rb", "spec/spec/matchers/be_close_spec.rb", "spec/spec/matchers/be_spec.rb", "spec/spec/matchers/change_spec.rb", "spec/spec/matchers/description_generation_spec.rb", "spec/spec/matchers/eql_spec.rb", "spec/spec/matchers/equal_spec.rb", "spec/spec/matchers/exist_spec.rb", "spec/spec/matchers/handler_spec.rb", "spec/spec/matchers/has_spec.rb", "spec/spec/matchers/have_spec.rb", "spec/spec/matchers/include_spec.rb", "spec/spec/matchers/match_array_spec.rb", "spec/spec/matchers/match_spec.rb", "spec/spec/matchers/matcher_methods_spec.rb", "spec/spec/matchers/mock_constraint_matchers_spec.rb", "spec/spec/matchers/operator_matcher_spec.rb", "spec/spec/matchers/raise_error_spec.rb", "spec/spec/matchers/respond_to_spec.rb", "spec/spec/matchers/satisfy_spec.rb", "spec/spec/matchers/simple_matcher_spec.rb", "spec/spec/matchers/throw_symbol_spec.rb", "spec/spec/mocks/any_number_of_times_spec.rb", "spec/spec/mocks/argument_expectation_spec.rb", "spec/spec/mocks/at_least_spec.rb", "spec/spec/mocks/at_most_spec.rb", "spec/spec/mocks/bug_report_10260_spec.rb", "spec/spec/mocks/bug_report_10263_spec.rb", "spec/spec/mocks/bug_report_11545_spec.rb", "spec/spec/mocks/bug_report_15719_spec.rb", "spec/spec/mocks/bug_report_496.rb", "spec/spec/mocks/bug_report_600_spec.rb", "spec/spec/mocks/bug_report_7611_spec.rb", "spec/spec/mocks/bug_report_7805_spec.rb", "spec/spec/mocks/bug_report_8165_spec.rb", "spec/spec/mocks/bug_report_8302_spec.rb", "spec/spec/mocks/failing_mock_argument_constraints_spec.rb", "spec/spec/mocks/hash_including_matcher_spec.rb", "spec/spec/mocks/hash_not_including_matcher_spec.rb", "spec/spec/mocks/mock_ordering_spec.rb", "spec/spec/mocks/mock_space_spec.rb", "spec/spec/mocks/mock_spec.rb", "spec/spec/mocks/multiple_return_value_spec.rb", "spec/spec/mocks/nil_expectation_warning_spec.rb", "spec/spec/mocks/null_object_mock_spec.rb", "spec/spec/mocks/once_counts_spec.rb", "spec/spec/mocks/options_hash_spec.rb", "spec/spec/mocks/partial_mock_spec.rb", "spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb", "spec/spec/mocks/passing_mock_argument_constraints_spec.rb", "spec/spec/mocks/precise_counts_spec.rb", "spec/spec/mocks/record_messages_spec.rb", "spec/spec/mocks/stub_spec.rb", "spec/spec/mocks/stubbed_message_expectations_spec.rb", "spec/spec/mocks/twice_counts_spec.rb", "spec/spec/package/bin_spec_spec.rb", "spec/spec/runner/class_and_argument_parser_spec.rb", "spec/spec/runner/command_line_spec.rb", "spec/spec/runner/configuration_spec.rb", "spec/spec/runner/drb_command_line_spec.rb", "spec/spec/runner/empty_file.txt", "spec/spec/runner/examples.txt", "spec/spec/runner/failed.txt", "spec/spec/runner/formatter/base_formatter_spec.rb", "spec/spec/runner/formatter/base_text_formatter_spec.rb", "spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb", "spec/spec/runner/formatter/failing_examples_formatter_spec.rb", "spec/spec/runner/formatter/html_formatted-1.8.4.html", "spec/spec/runner/formatter/html_formatted-1.8.5-jruby.html", "spec/spec/runner/formatter/html_formatted-1.8.5.html", "spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html", "spec/spec/runner/formatter/html_formatted-1.8.6.html", "spec/spec/runner/formatter/html_formatted-1.8.7.html", "spec/spec/runner/formatter/html_formatted-1.9.1.html", "spec/spec/runner/formatter/html_formatter_spec.rb", "spec/spec/runner/formatter/nested_text_formatter_spec.rb", "spec/spec/runner/formatter/profile_formatter_spec.rb", "spec/spec/runner/formatter/progress_bar_formatter_spec.rb", "spec/spec/runner/formatter/snippet_extractor_spec.rb", "spec/spec/runner/formatter/spec_mate_formatter_spec.rb", "spec/spec/runner/formatter/specdoc_formatter_spec.rb", "spec/spec/runner/formatter/story/html_formatter_spec.rb", "spec/spec/runner/formatter/story/plain_text_formatter_spec.rb", "spec/spec/runner/formatter/story/progress_bar_formatter_spec.rb", "spec/spec/runner/formatter/text_mate_formatted-1.8.4.html", "spec/spec/runner/formatter/text_mate_formatted-1.8.6.html", "spec/spec/runner/formatter/text_mate_formatted-1.8.7.html", "spec/spec/runner/formatter/text_mate_formatted-1.9.1.html", "spec/spec/runner/heckle_runner_spec.rb", "spec/spec/runner/heckler_spec.rb", "spec/spec/runner/noisy_backtrace_tweaker_spec.rb", "spec/spec/runner/option_parser_spec.rb", "spec/spec/runner/options_spec.rb", "spec/spec/runner/output_one_time_fixture.rb", "spec/spec/runner/output_one_time_fixture_runner.rb", "spec/spec/runner/output_one_time_spec.rb", "spec/spec/runner/quiet_backtrace_tweaker_spec.rb", "spec/spec/runner/reporter_spec.rb", "spec/spec/runner/resources/a_bar.rb", "spec/spec/runner/resources/a_foo.rb", "spec/spec/runner/resources/a_spec.rb", "spec/spec/runner/resources/custom_example_group_runner.rb", "spec/spec/runner/spec.opts", "spec/spec/runner/spec_drb.opts", "spec/spec/runner/spec_parser/spec_parser_fixture.rb", "spec/spec/runner/spec_parser_spec.rb", "spec/spec/runner/spec_spaced.opts", "spec/spec/runner_spec.rb", "spec/spec/spec_classes.rb", "spec/spec/spec_spec.rb", "spec/spec/story/builders.rb", "spec/spec/story/extensions/main_spec.rb", "spec/spec/story/extensions_spec.rb", "spec/spec/story/given_scenario_spec.rb", "spec/spec/story/runner/plain_text_story_runner_spec.rb", "spec/spec/story/runner/scenario_collector_spec.rb", "spec/spec/story/runner/scenario_runner_spec.rb", "spec/spec/story/runner/story_mediator_spec.rb", "spec/spec/story/runner/story_parser_spec.rb", "spec/spec/story/runner/story_runner_spec.rb", "spec/spec/story/runner_spec.rb", "spec/spec/story/scenario_spec.rb", "spec/spec/story/step_group_spec.rb", "spec/spec/story/step_mother_spec.rb", "spec/spec/story/step_spec.rb", "spec/spec/story/story_helper.rb", "spec/spec/story/story_spec.rb", "spec/spec/story/world_spec.rb", "spec/spec_helper.rb", "story_server/prototype/javascripts/builder.js", "story_server/prototype/javascripts/controls.js", "story_server/prototype/javascripts/dragdrop.js", "story_server/prototype/javascripts/effects.js", "story_server/prototype/javascripts/prototype.js", "story_server/prototype/javascripts/rspec.js", "story_server/prototype/javascripts/scriptaculous.js", "story_server/prototype/javascripts/slider.js", "story_server/prototype/javascripts/sound.js", "story_server/prototype/javascripts/unittest.js", "story_server/prototype/lib/server.rb", "story_server/prototype/stories.html", "story_server/prototype/stylesheets/rspec.css", "story_server/prototype/stylesheets/test.css"]
|
14
|
+
s.files = [".autotest", "History.txt", "License.txt", "Manifest.txt", "README.txt", "Rakefile", "TODO.txt", "bin/autospec", "bin/spec", "examples/failing/README.txt", "examples/failing/diffing_spec.rb", "examples/failing/failing_autogenerated_docstrings_example.rb", "examples/failing/failure_in_after.rb", "examples/failing/failure_in_before.rb", "examples/failing/mocking_example.rb", "examples/failing/mocking_with_flexmock.rb", "examples/failing/mocking_with_mocha.rb", "examples/failing/mocking_with_rr.rb", "examples/failing/partial_mock_example.rb", "examples/failing/predicate_example.rb", "examples/failing/raising_example.rb", "examples/failing/spec_helper.rb", "examples/failing/syntax_error_example.rb", "examples/failing/team_spec.rb", "examples/failing/timeout_behaviour.rb", "examples/passing/autogenerated_docstrings_example.rb", "examples/passing/before_and_after_example.rb", "examples/passing/behave_as_example.rb", "examples/passing/custom_expectation_matchers.rb", "examples/passing/custom_formatter.rb", "examples/passing/dynamic_spec.rb", "examples/passing/file_accessor.rb", "examples/passing/file_accessor_spec.rb", "examples/passing/greeter_spec.rb", "examples/passing/helper_method_example.rb", "examples/passing/io_processor.rb", "examples/passing/io_processor_spec.rb", "examples/passing/legacy_spec.rb", "examples/passing/mocking_example.rb", "examples/passing/multi_threaded_example_group_runner.rb", "examples/passing/nested_classes_example.rb", "examples/passing/partial_mock_example.rb", "examples/passing/pending_example.rb", "examples/passing/predicate_example.rb", "examples/passing/priority.txt", "examples/passing/shared_example_group_example.rb", "examples/passing/shared_stack_examples.rb", "examples/passing/simple_matcher_example.rb", "examples/passing/spec_helper.rb", "examples/passing/stack.rb", "examples/passing/stack_spec.rb", "examples/passing/stack_spec_with_nested_example_groups.rb", "examples/passing/stubbing_example.rb", "examples/passing/yielding_example.rb", "examples/ruby1.9.compatibility/access_to_constants_spec.rb", "features/before_and_after_blocks/before_and_after_blocks.feature", "features/example_groups/autogenerated_docstrings.feature", "features/example_groups/example_group_with_should_methods.feature", "features/example_groups/nested_groups.feature", "features/example_groups/output.feature", "features/interop/examples_and_tests_together.feature", "features/interop/test_but_not_test_unit.feature", "features/interop/test_case_with_should_methods.feature", "features/mock_framework_integration/use_flexmock.feature", "features/step_definitions/running_rspec.rb", "features/support/env.rb", "features/support/helpers/cmdline.rb", "features/support/helpers/story_helper.rb", "features/support/matchers/smart_match.rb", "init.rb", "lib/adapters/mock_frameworks/flexmock.rb", "lib/adapters/mock_frameworks/mocha.rb", "lib/adapters/mock_frameworks/rr.rb", "lib/adapters/mock_frameworks/rspec.rb", "lib/autotest/discover.rb", "lib/autotest/rspec.rb", "lib/spec.rb", "lib/spec/dsl.rb", "lib/spec/dsl/main.rb", "lib/spec/example.rb", "lib/spec/example/before_and_after_hooks.rb", "lib/spec/example/errors.rb", "lib/spec/example/example_group.rb", "lib/spec/example/example_group_factory.rb", "lib/spec/example/example_group_methods.rb", "lib/spec/example/example_matcher.rb", "lib/spec/example/example_methods.rb", "lib/spec/example/module_reopening_fix.rb", "lib/spec/example/pending.rb", "lib/spec/example/shared_example_group.rb", "lib/spec/expectations.rb", "lib/spec/expectations/differs/default.rb", "lib/spec/expectations/errors.rb", "lib/spec/expectations/extensions.rb", "lib/spec/expectations/extensions/object.rb", "lib/spec/expectations/extensions/string_and_symbol.rb", "lib/spec/expectations/handler.rb", "lib/spec/interop/test.rb", "lib/spec/interop/test/unit/autorunner.rb", "lib/spec/interop/test/unit/testcase.rb", "lib/spec/interop/test/unit/testresult.rb", "lib/spec/interop/test/unit/testsuite_adapter.rb", "lib/spec/interop/test/unit/ui/console/testrunner.rb", "lib/spec/matchers.rb", "lib/spec/matchers/be.rb", "lib/spec/matchers/be_close.rb", "lib/spec/matchers/change.rb", "lib/spec/matchers/eql.rb", "lib/spec/matchers/equal.rb", "lib/spec/matchers/errors.rb", "lib/spec/matchers/exist.rb", "lib/spec/matchers/generated_descriptions.rb", "lib/spec/matchers/has.rb", "lib/spec/matchers/have.rb", "lib/spec/matchers/include.rb", "lib/spec/matchers/match.rb", "lib/spec/matchers/match_array.rb", "lib/spec/matchers/method_missing.rb", "lib/spec/matchers/operator_matcher.rb", "lib/spec/matchers/raise_error.rb", "lib/spec/matchers/respond_to.rb", "lib/spec/matchers/satisfy.rb", "lib/spec/matchers/simple_matcher.rb", "lib/spec/matchers/throw_symbol.rb", "lib/spec/matchers/wrap_expectation.rb", "lib/spec/mocks.rb", "lib/spec/mocks/argument_constraints.rb", "lib/spec/mocks/argument_expectation.rb", "lib/spec/mocks/error_generator.rb", "lib/spec/mocks/errors.rb", "lib/spec/mocks/extensions.rb", "lib/spec/mocks/extensions/object.rb", "lib/spec/mocks/framework.rb", "lib/spec/mocks/message_expectation.rb", "lib/spec/mocks/methods.rb", "lib/spec/mocks/mock.rb", "lib/spec/mocks/order_group.rb", "lib/spec/mocks/proxy.rb", "lib/spec/mocks/space.rb", "lib/spec/mocks/spec_methods.rb", "lib/spec/rake/spectask.rb", "lib/spec/rake/verify_rcov.rb", "lib/spec/ruby.rb", "lib/spec/runner.rb", "lib/spec/runner/backtrace_tweaker.rb", "lib/spec/runner/class_and_arguments_parser.rb", "lib/spec/runner/command_line.rb", "lib/spec/runner/configuration.rb", "lib/spec/runner/drb_command_line.rb", "lib/spec/runner/example_group_runner.rb", "lib/spec/runner/formatter/base_formatter.rb", "lib/spec/runner/formatter/base_text_formatter.rb", "lib/spec/runner/formatter/failing_example_groups_formatter.rb", "lib/spec/runner/formatter/failing_examples_formatter.rb", "lib/spec/runner/formatter/html_formatter.rb", "lib/spec/runner/formatter/nested_text_formatter.rb", "lib/spec/runner/formatter/profile_formatter.rb", "lib/spec/runner/formatter/progress_bar_formatter.rb", "lib/spec/runner/formatter/snippet_extractor.rb", "lib/spec/runner/formatter/specdoc_formatter.rb", "lib/spec/runner/formatter/story/html_formatter.rb", "lib/spec/runner/formatter/story/plain_text_formatter.rb", "lib/spec/runner/formatter/story/progress_bar_formatter.rb", "lib/spec/runner/formatter/text_mate_formatter.rb", "lib/spec/runner/heckle_runner.rb", "lib/spec/runner/heckle_runner_unsupported.rb", "lib/spec/runner/option_parser.rb", "lib/spec/runner/options.rb", "lib/spec/runner/reporter.rb", "lib/spec/runner/spec_parser.rb", "lib/spec/story.rb", "lib/spec/story/extensions.rb", "lib/spec/story/extensions/main.rb", "lib/spec/story/extensions/regexp.rb", "lib/spec/story/extensions/string.rb", "lib/spec/story/given_scenario.rb", "lib/spec/story/runner.rb", "lib/spec/story/runner/plain_text_story_runner.rb", "lib/spec/story/runner/scenario_collector.rb", "lib/spec/story/runner/scenario_runner.rb", "lib/spec/story/runner/story_mediator.rb", "lib/spec/story/runner/story_parser.rb", "lib/spec/story/runner/story_runner.rb", "lib/spec/story/scenario.rb", "lib/spec/story/step.rb", "lib/spec/story/step_group.rb", "lib/spec/story/step_mother.rb", "lib/spec/story/story.rb", "lib/spec/story/world.rb", "lib/spec/version.rb", "resources/rake/examples.rake", "resources/rake/examples_with_rcov.rake", "resources/rake/failing_examples_with_html.rake", "resources/rake/verify_rcov.rake", "resources/spec/example_group_with_should_methods.rb", "resources/spec/simple_spec.rb", "resources/spec/spec_with_flexmock.rb", "resources/test/spec_and_test_together.rb", "resources/test/spec_including_test_but_not_unit.rb", "resources/test/test_case_with_should_methods.rb", "rspec.gemspec", "spec/README.jruby", "spec/autotest/autotest_helper.rb", "spec/autotest/autotest_matchers.rb", "spec/autotest/discover_spec.rb", "spec/autotest/failed_results_re_spec.rb", "spec/autotest/rspec_spec.rb", "spec/rspec_suite.rb", "spec/ruby_forker.rb", "spec/spec.opts", "spec/spec/dsl/main_spec.rb", "spec/spec/example/example_group_class_definition_spec.rb", "spec/spec/example/example_group_factory_spec.rb", "spec/spec/example/example_group_methods_spec.rb", "spec/spec/example/example_group_spec.rb", "spec/spec/example/example_matcher_spec.rb", "spec/spec/example/example_methods_spec.rb", "spec/spec/example/helper_method_spec.rb", "spec/spec/example/nested_example_group_spec.rb", "spec/spec/example/pending_module_spec.rb", "spec/spec/example/predicate_matcher_spec.rb", "spec/spec/example/shared_example_group_spec.rb", "spec/spec/example/subclassing_example_group_spec.rb", "spec/spec/expectations/differs/default_spec.rb", "spec/spec/expectations/extensions/object_spec.rb", "spec/spec/expectations/fail_with_spec.rb", "spec/spec/expectations/wrap_expectation_spec.rb", "spec/spec/interop/test/unit/resources/spec_that_fails.rb", "spec/spec/interop/test/unit/resources/spec_that_passes.rb", "spec/spec/interop/test/unit/resources/spec_with_errors.rb", "spec/spec/interop/test/unit/resources/spec_with_options_hash.rb", "spec/spec/interop/test/unit/resources/test_case_that_fails.rb", "spec/spec/interop/test/unit/resources/test_case_that_passes.rb", "spec/spec/interop/test/unit/resources/test_case_with_errors.rb", "spec/spec/interop/test/unit/resources/testsuite_adapter_spec_with_test_unit.rb", "spec/spec/interop/test/unit/spec_spec.rb", "spec/spec/interop/test/unit/test_unit_spec_helper.rb", "spec/spec/interop/test/unit/testcase_spec.rb", "spec/spec/interop/test/unit/testsuite_adapter_spec.rb", "spec/spec/matchers/be_close_spec.rb", "spec/spec/matchers/be_spec.rb", "spec/spec/matchers/change_spec.rb", "spec/spec/matchers/description_generation_spec.rb", "spec/spec/matchers/eql_spec.rb", "spec/spec/matchers/equal_spec.rb", "spec/spec/matchers/exist_spec.rb", "spec/spec/matchers/handler_spec.rb", "spec/spec/matchers/has_spec.rb", "spec/spec/matchers/have_spec.rb", "spec/spec/matchers/include_spec.rb", "spec/spec/matchers/match_array_spec.rb", "spec/spec/matchers/match_spec.rb", "spec/spec/matchers/matcher_methods_spec.rb", "spec/spec/matchers/mock_constraint_matchers_spec.rb", "spec/spec/matchers/operator_matcher_spec.rb", "spec/spec/matchers/raise_error_spec.rb", "spec/spec/matchers/respond_to_spec.rb", "spec/spec/matchers/satisfy_spec.rb", "spec/spec/matchers/simple_matcher_spec.rb", "spec/spec/matchers/throw_symbol_spec.rb", "spec/spec/mocks/any_number_of_times_spec.rb", "spec/spec/mocks/argument_expectation_spec.rb", "spec/spec/mocks/at_least_spec.rb", "spec/spec/mocks/at_most_spec.rb", "spec/spec/mocks/bug_report_10260_spec.rb", "spec/spec/mocks/bug_report_10263_spec.rb", "spec/spec/mocks/bug_report_11545_spec.rb", "spec/spec/mocks/bug_report_15719_spec.rb", "spec/spec/mocks/bug_report_496.rb", "spec/spec/mocks/bug_report_600_spec.rb", "spec/spec/mocks/bug_report_7611_spec.rb", "spec/spec/mocks/bug_report_7805_spec.rb", "spec/spec/mocks/bug_report_8165_spec.rb", "spec/spec/mocks/bug_report_8302_spec.rb", "spec/spec/mocks/failing_mock_argument_constraints_spec.rb", "spec/spec/mocks/hash_including_matcher_spec.rb", "spec/spec/mocks/hash_not_including_matcher_spec.rb", "spec/spec/mocks/mock_ordering_spec.rb", "spec/spec/mocks/mock_space_spec.rb", "spec/spec/mocks/mock_spec.rb", "spec/spec/mocks/multiple_return_value_spec.rb", "spec/spec/mocks/nil_expectation_warning_spec.rb", "spec/spec/mocks/null_object_mock_spec.rb", "spec/spec/mocks/once_counts_spec.rb", "spec/spec/mocks/options_hash_spec.rb", "spec/spec/mocks/partial_mock_spec.rb", "spec/spec/mocks/partial_mock_using_mocks_directly_spec.rb", "spec/spec/mocks/passing_mock_argument_constraints_spec.rb", "spec/spec/mocks/precise_counts_spec.rb", "spec/spec/mocks/record_messages_spec.rb", "spec/spec/mocks/stub_spec.rb", "spec/spec/mocks/stubbed_message_expectations_spec.rb", "spec/spec/mocks/twice_counts_spec.rb", "spec/spec/package/bin_spec_spec.rb", "spec/spec/runner/class_and_argument_parser_spec.rb", "spec/spec/runner/command_line_spec.rb", "spec/spec/runner/configuration_spec.rb", "spec/spec/runner/drb_command_line_spec.rb", "spec/spec/runner/empty_file.txt", "spec/spec/runner/example_group_runner_spec.rb", "spec/spec/runner/examples.txt", "spec/spec/runner/failed.txt", "spec/spec/runner/formatter/base_formatter_spec.rb", "spec/spec/runner/formatter/base_text_formatter_spec.rb", "spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb", "spec/spec/runner/formatter/failing_examples_formatter_spec.rb", "spec/spec/runner/formatter/html_formatted-1.8.4.html", "spec/spec/runner/formatter/html_formatted-1.8.5-jruby.html", "spec/spec/runner/formatter/html_formatted-1.8.5.html", "spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html", "spec/spec/runner/formatter/html_formatted-1.8.6.html", "spec/spec/runner/formatter/html_formatted-1.8.7.html", "spec/spec/runner/formatter/html_formatted-1.9.1.html", "spec/spec/runner/formatter/html_formatter_spec.rb", "spec/spec/runner/formatter/nested_text_formatter_spec.rb", "spec/spec/runner/formatter/profile_formatter_spec.rb", "spec/spec/runner/formatter/progress_bar_formatter_spec.rb", "spec/spec/runner/formatter/snippet_extractor_spec.rb", "spec/spec/runner/formatter/spec_mate_formatter_spec.rb", "spec/spec/runner/formatter/specdoc_formatter_spec.rb", "spec/spec/runner/formatter/story/html_formatter_spec.rb", "spec/spec/runner/formatter/story/plain_text_formatter_spec.rb", "spec/spec/runner/formatter/story/progress_bar_formatter_spec.rb", "spec/spec/runner/formatter/text_mate_formatted-1.8.4.html", "spec/spec/runner/formatter/text_mate_formatted-1.8.6.html", "spec/spec/runner/formatter/text_mate_formatted-1.8.7.html", "spec/spec/runner/formatter/text_mate_formatted-1.9.1.html", "spec/spec/runner/heckle_runner_spec.rb", "spec/spec/runner/heckler_spec.rb", "spec/spec/runner/noisy_backtrace_tweaker_spec.rb", "spec/spec/runner/option_parser_spec.rb", "spec/spec/runner/options_spec.rb", "spec/spec/runner/output_one_time_fixture.rb", "spec/spec/runner/output_one_time_fixture_runner.rb", "spec/spec/runner/output_one_time_spec.rb", "spec/spec/runner/quiet_backtrace_tweaker_spec.rb", "spec/spec/runner/reporter_spec.rb", "spec/spec/runner/resources/a_bar.rb", "spec/spec/runner/resources/a_foo.rb", "spec/spec/runner/resources/a_spec.rb", "spec/spec/runner/resources/custom_example_group_runner.rb", "spec/spec/runner/resources/utf8_encoded.rb", "spec/spec/runner/spec.opts", "spec/spec/runner/spec_drb.opts", "spec/spec/runner/spec_parser/spec_parser_fixture.rb", "spec/spec/runner/spec_parser_spec.rb", "spec/spec/runner/spec_spaced.opts", "spec/spec/runner_spec.rb", "spec/spec/spec_classes.rb", "spec/spec/spec_spec.rb", "spec/spec/story/builders.rb", "spec/spec/story/extensions/main_spec.rb", "spec/spec/story/extensions_spec.rb", "spec/spec/story/given_scenario_spec.rb", "spec/spec/story/runner/plain_text_story_runner_spec.rb", "spec/spec/story/runner/scenario_collector_spec.rb", "spec/spec/story/runner/scenario_runner_spec.rb", "spec/spec/story/runner/story_mediator_spec.rb", "spec/spec/story/runner/story_parser_spec.rb", "spec/spec/story/runner/story_runner_spec.rb", "spec/spec/story/runner_spec.rb", "spec/spec/story/scenario_spec.rb", "spec/spec/story/step_group_spec.rb", "spec/spec/story/step_mother_spec.rb", "spec/spec/story/step_spec.rb", "spec/spec/story/story_helper.rb", "spec/spec/story/story_spec.rb", "spec/spec/story/world_spec.rb", "spec/spec_helper.rb", "story_server/prototype/javascripts/builder.js", "story_server/prototype/javascripts/controls.js", "story_server/prototype/javascripts/dragdrop.js", "story_server/prototype/javascripts/effects.js", "story_server/prototype/javascripts/prototype.js", "story_server/prototype/javascripts/rspec.js", "story_server/prototype/javascripts/scriptaculous.js", "story_server/prototype/javascripts/slider.js", "story_server/prototype/javascripts/sound.js", "story_server/prototype/javascripts/unittest.js", "story_server/prototype/lib/server.rb", "story_server/prototype/stories.html", "story_server/prototype/stylesheets/rspec.css", "story_server/prototype/stylesheets/test.css"]
|
15
15
|
s.has_rdoc = true
|
16
16
|
s.homepage = %q{http://rspec.info/}
|
17
17
|
s.rdoc_options = ["--main", "README.txt"]
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
s.rubyforge_project = %q{rspec}
|
20
20
|
s.rubygems_version = %q{1.3.1}
|
21
|
-
s.summary = %q{rspec 1.1.11.
|
21
|
+
s.summary = %q{rspec 1.1.11.7}
|
22
22
|
|
23
23
|
if s.respond_to? :specification_version then
|
24
24
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
@@ -20,31 +20,6 @@ describe Object, "#should" do
|
|
20
20
|
@target.should @matcher
|
21
21
|
}.should fail_with("the failure message")
|
22
22
|
end
|
23
|
-
|
24
|
-
it "should raise error if it receives false directly" do
|
25
|
-
lambda {
|
26
|
-
@target.should false
|
27
|
-
}.should raise_error(Spec::Expectations::InvalidMatcherError)
|
28
|
-
end
|
29
|
-
|
30
|
-
it "should raise error if it receives false (evaluated)" do
|
31
|
-
lambda {
|
32
|
-
@target.should eql?("foo")
|
33
|
-
}.should raise_error(Spec::Expectations::InvalidMatcherError)
|
34
|
-
end
|
35
|
-
|
36
|
-
it "should raise error if it receives true" do
|
37
|
-
lambda {
|
38
|
-
@target.should true
|
39
|
-
}.should raise_error(Spec::Expectations::InvalidMatcherError)
|
40
|
-
end
|
41
|
-
|
42
|
-
it "should raise error if it receives no argument and it is not used as a left side of an operator" do
|
43
|
-
pending "Is it even possible to catch this?"
|
44
|
-
lambda {
|
45
|
-
@target.should
|
46
|
-
}.should raise_error(Spec::Expectations::InvalidMatcherError)
|
47
|
-
end
|
48
23
|
end
|
49
24
|
|
50
25
|
describe Object, "#should_not" do
|
@@ -67,29 +42,4 @@ describe Object, "#should_not" do
|
|
67
42
|
@target.should_not @matcher
|
68
43
|
}.should fail_with("the negative failure message")
|
69
44
|
end
|
70
|
-
|
71
|
-
it "should raise error if it receives false directly" do
|
72
|
-
lambda {
|
73
|
-
@target.should_not false
|
74
|
-
}.should raise_error(Spec::Expectations::InvalidMatcherError)
|
75
|
-
end
|
76
|
-
|
77
|
-
it "should raise error if it receives false (evaluated)" do
|
78
|
-
lambda {
|
79
|
-
@target.should_not eql?("foo")
|
80
|
-
}.should raise_error(Spec::Expectations::InvalidMatcherError)
|
81
|
-
end
|
82
|
-
|
83
|
-
it "should raise error if it receives true" do
|
84
|
-
lambda {
|
85
|
-
@target.should_not true
|
86
|
-
}.should raise_error(Spec::Expectations::InvalidMatcherError)
|
87
|
-
end
|
88
|
-
|
89
|
-
it "should raise error if it receives no argument and it is not used as a left side of an operator" do
|
90
|
-
pending "Is it even possible to catch this?"
|
91
|
-
lambda {
|
92
|
-
@target.should_not
|
93
|
-
}.should raise_error(Spec::Expectations::InvalidMatcherError)
|
94
|
-
end
|
95
45
|
end
|
@@ -279,3 +279,25 @@ describe "arbitrary predicate with DelegateClass" do
|
|
279
279
|
delegate.should be_large
|
280
280
|
end
|
281
281
|
end
|
282
|
+
|
283
|
+
describe "be_a, be_an" do
|
284
|
+
it "should pass when class matches" do
|
285
|
+
"foobar".should be_a(String)
|
286
|
+
[1,2,3].should be_an(Array)
|
287
|
+
end
|
288
|
+
|
289
|
+
it "should fail when class does not match" do
|
290
|
+
"foobar".should_not be_a(Hash)
|
291
|
+
[1,2,3].should_not be_an(Integer)
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
describe "be_an_instance_of" do
|
296
|
+
it "passes when direct class matches" do
|
297
|
+
5.should be_an_instance_of(Fixnum)
|
298
|
+
end
|
299
|
+
|
300
|
+
it "fails when class is higher up hierarchy" do
|
301
|
+
5.should_not be_an_instance_of(Numeric)
|
302
|
+
end
|
303
|
+
end
|
@@ -57,17 +57,6 @@ module Spec
|
|
57
57
|
Spec::Expectations::ExpectationMatcherHandler.handle_matcher(actual, matcher)
|
58
58
|
end
|
59
59
|
|
60
|
-
it "should explain when the matcher parameter is not a matcher" do
|
61
|
-
begin
|
62
|
-
nonmatcher = mock("nonmatcher")
|
63
|
-
actual = Object.new
|
64
|
-
Spec::Expectations::ExpectationMatcherHandler.handle_matcher(actual, nonmatcher)
|
65
|
-
rescue Spec::Expectations::InvalidMatcherError => e
|
66
|
-
end
|
67
|
-
|
68
|
-
e.message.should =~ /^Expected a matcher, got /
|
69
|
-
end
|
70
|
-
|
71
60
|
it "should return the match value" do
|
72
61
|
matcher = mock("matcher")
|
73
62
|
actual = Object.new
|
@@ -79,15 +68,6 @@ module Spec
|
|
79
68
|
|
80
69
|
describe NegativeExpectationMatcherHandler do
|
81
70
|
describe "#handle_matcher" do
|
82
|
-
it "should explain when matcher does not support should_not" do
|
83
|
-
matcher = mock("matcher")
|
84
|
-
matcher.stub!(:matches?)
|
85
|
-
actual = Object.new
|
86
|
-
lambda {
|
87
|
-
Spec::Expectations::NegativeExpectationMatcherHandler.handle_matcher(actual, matcher)
|
88
|
-
}.should fail_with(/Matcher does not support should_not.\n/)
|
89
|
-
end
|
90
|
-
|
91
71
|
it "should ask the matcher if it matches" do
|
92
72
|
matcher = mock("matcher")
|
93
73
|
actual = Object.new
|
@@ -96,18 +76,6 @@ module Spec
|
|
96
76
|
Spec::Expectations::NegativeExpectationMatcherHandler.handle_matcher(actual, matcher)
|
97
77
|
end
|
98
78
|
|
99
|
-
it "should explain when the matcher parameter is not a matcher" do
|
100
|
-
begin
|
101
|
-
nonmatcher = mock("nonmatcher")
|
102
|
-
actual = Object.new
|
103
|
-
Spec::Expectations::NegativeExpectationMatcherHandler.handle_matcher(actual, nonmatcher)
|
104
|
-
rescue Spec::Expectations::InvalidMatcherError => e
|
105
|
-
end
|
106
|
-
|
107
|
-
e.message.should =~ /^Expected a matcher, got /
|
108
|
-
end
|
109
|
-
|
110
|
-
|
111
79
|
it "should return the match value" do
|
112
80
|
matcher = mock("matcher")
|
113
81
|
actual = Object.new
|
@@ -138,13 +106,6 @@ module Spec
|
|
138
106
|
5.should arbitrary_matcher(:expected => 4).with(5) { 3 }
|
139
107
|
end
|
140
108
|
|
141
|
-
it "should explain when matcher does not support should_not" do
|
142
|
-
lambda {
|
143
|
-
5.should_not positive_only_matcher(:expected => 5)
|
144
|
-
}.should fail_with(/Matcher does not support should_not.\n/)
|
145
|
-
end
|
146
|
-
|
147
|
-
|
148
109
|
end
|
149
110
|
end
|
150
111
|
end
|
@@ -26,13 +26,28 @@ module Spec
|
|
26
26
|
@mock.random_call(false)
|
27
27
|
end
|
28
28
|
|
29
|
-
it "should accept fixnum as
|
30
|
-
@mock.should_receive(:random_call).with(
|
29
|
+
it "should accept fixnum as kind_of(Numeric)" do
|
30
|
+
@mock.should_receive(:random_call).with(kind_of(Numeric))
|
31
31
|
@mock.random_call(1)
|
32
32
|
end
|
33
33
|
|
34
34
|
it "should accept float as an_instance_of(Numeric)" do
|
35
|
-
@mock.should_receive(:random_call).with(
|
35
|
+
@mock.should_receive(:random_call).with(kind_of(Numeric))
|
36
|
+
@mock.random_call(1.5)
|
37
|
+
end
|
38
|
+
|
39
|
+
it "accepts fixnum as instance_of(Fixnum)" do
|
40
|
+
@mock.should_receive(:random_call).with(instance_of(Fixnum))
|
41
|
+
@mock.random_call(1)
|
42
|
+
end
|
43
|
+
|
44
|
+
it "should NOT accept fixnum as instance_of(Numeric)" do
|
45
|
+
@mock.should_not_receive(:random_call).with(instance_of(Numeric))
|
46
|
+
@mock.random_call(1)
|
47
|
+
end
|
48
|
+
|
49
|
+
it "should NOT accept float as instance_of(Numeric)" do
|
50
|
+
@mock.should_not_receive(:random_call).with(instance_of(Numeric))
|
36
51
|
@mock.random_call(1.5)
|
37
52
|
end
|
38
53
|
|
@@ -0,0 +1,33 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../../spec_helper'
|
2
|
+
|
3
|
+
module Spec
|
4
|
+
module Runner
|
5
|
+
describe ExampleGroupRunner do
|
6
|
+
before(:each) do
|
7
|
+
err = StringIO.new('')
|
8
|
+
out = StringIO.new('')
|
9
|
+
@options = Options.new(err, out)
|
10
|
+
@runner = Spec::Runner::ExampleGroupRunner.new(@options)
|
11
|
+
end
|
12
|
+
|
13
|
+
after(:each) do
|
14
|
+
Spec::Expectations.differ = nil
|
15
|
+
end
|
16
|
+
|
17
|
+
describe "#load_files" do
|
18
|
+
it "should load UTF-8 encoded files" do
|
19
|
+
file = File.expand_path(File.dirname(__FILE__) + "/resources/utf8_encoded.rb")
|
20
|
+
@options.files << file
|
21
|
+
@runner.load_files(@options.files_to_load).should == @options.files_to_load
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
describe BehaviourRunner do
|
27
|
+
it "is DEPRECATED (use ExampleGroupRunner)" do
|
28
|
+
Kernel.should_receive(:warn).with(/DEPRECATED/)
|
29
|
+
BehaviourRunner.new(nil)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dchelimsky-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.11.
|
4
|
+
version: 1.1.11.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RSpec Development Team
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-01-
|
12
|
+
date: 2009-01-09 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -72,7 +72,7 @@ files:
|
|
72
72
|
- examples/passing/io_processor_spec.rb
|
73
73
|
- examples/passing/legacy_spec.rb
|
74
74
|
- examples/passing/mocking_example.rb
|
75
|
-
- examples/passing/
|
75
|
+
- examples/passing/multi_threaded_example_group_runner.rb
|
76
76
|
- examples/passing/nested_classes_example.rb
|
77
77
|
- examples/passing/partial_mock_example.rb
|
78
78
|
- examples/passing/pending_example.rb
|
@@ -332,6 +332,7 @@ files:
|
|
332
332
|
- spec/spec/runner/configuration_spec.rb
|
333
333
|
- spec/spec/runner/drb_command_line_spec.rb
|
334
334
|
- spec/spec/runner/empty_file.txt
|
335
|
+
- spec/spec/runner/example_group_runner_spec.rb
|
335
336
|
- spec/spec/runner/examples.txt
|
336
337
|
- spec/spec/runner/failed.txt
|
337
338
|
- spec/spec/runner/formatter/base_formatter_spec.rb
|
@@ -373,6 +374,7 @@ files:
|
|
373
374
|
- spec/spec/runner/resources/a_foo.rb
|
374
375
|
- spec/spec/runner/resources/a_spec.rb
|
375
376
|
- spec/spec/runner/resources/custom_example_group_runner.rb
|
377
|
+
- spec/spec/runner/resources/utf8_encoded.rb
|
376
378
|
- spec/spec/runner/spec.opts
|
377
379
|
- spec/spec/runner/spec_drb.opts
|
378
380
|
- spec/spec/runner/spec_parser/spec_parser_fixture.rb
|
@@ -440,6 +442,6 @@ rubyforge_project: rspec
|
|
440
442
|
rubygems_version: 1.2.0
|
441
443
|
signing_key:
|
442
444
|
specification_version: 2
|
443
|
-
summary: rspec 1.1.11.
|
445
|
+
summary: rspec 1.1.11.7
|
444
446
|
test_files: []
|
445
447
|
|