rspec 0.6.4 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +90 -1
- data/EXAMPLES.rd +28 -6
- data/MIT-LICENSE +20 -0
- data/README +18 -12
- data/Rakefile +60 -54
- data/examples/custom_formatter.rb +4 -4
- data/examples/helper_method_example.rb +11 -0
- data/examples/mocking_example.rb +19 -2
- data/examples/partial_mock_example.rb +28 -0
- data/examples/stack_spec.rb +8 -8
- data/examples/stubbing_example.rb +50 -9
- data/examples/test_case_spec.rb +6 -6
- data/lib/spec.rb +1 -2
- data/lib/spec/callback.rb +0 -0
- data/lib/spec/expectations.rb +3 -6
- data/lib/spec/expectations/diff.rb +23 -47
- data/lib/spec/expectations/differs/default.rb +62 -0
- data/lib/spec/expectations/{exceptions.rb → errors.rb} +0 -0
- data/lib/spec/expectations/extensions.rb +4 -0
- data/lib/spec/expectations/extensions/inspect_for_expectation_not_met_error.rb +14 -0
- data/lib/spec/expectations/extensions/numeric.rb +5 -0
- data/lib/spec/expectations/{expectations.rb → extensions/object.rb} +3 -6
- data/lib/spec/expectations/extensions/symbol.rb +5 -0
- data/lib/spec/expectations/should.rb +4 -0
- data/lib/spec/expectations/should/base.rb +42 -0
- data/lib/spec/expectations/should/have.rb +79 -0
- data/lib/spec/expectations/should/not.rb +72 -0
- data/lib/spec/expectations/should/should.rb +83 -0
- data/lib/spec/expectations/sugar.rb +6 -25
- data/lib/spec/mocks.rb +5 -1
- data/lib/spec/mocks/argument_expectation.rb +15 -1
- data/lib/spec/mocks/error_generator.rb +72 -0
- data/lib/spec/mocks/{exceptions.rb → errors.rb} +0 -0
- data/lib/spec/mocks/extensions/object.rb +3 -0
- data/lib/spec/mocks/message_expectation.rb +80 -73
- data/lib/spec/mocks/mock.rb +4 -69
- data/lib/spec/mocks/mock_handler.rb +158 -0
- data/lib/spec/mocks/mock_methods.rb +44 -0
- data/lib/spec/mocks/order_group.rb +10 -2
- data/lib/spec/rake/spectask.rb +20 -18
- data/lib/spec/rake/{rcov_verify.rb → verify_rcov.rb} +2 -2
- data/lib/spec/runner.rb +3 -1
- data/lib/spec/runner/backtrace_tweaker.rb +2 -1
- data/lib/spec/runner/context.rb +10 -16
- data/lib/spec/runner/context_eval.rb +40 -40
- data/lib/spec/runner/execution_context.rb +1 -12
- data/lib/spec/runner/{kernel_ext.rb → extensions/kernel.rb} +2 -2
- data/lib/spec/runner/{instance_exec.rb → extensions/object.rb} +0 -0
- data/lib/spec/runner/formatter/base_text_formatter.rb +25 -18
- data/lib/spec/runner/formatter/html_formatter.rb +81 -101
- data/lib/spec/runner/formatter/progress_bar_formatter.rb +9 -9
- data/lib/spec/runner/formatter/rdoc_formatter.rb +6 -6
- data/lib/spec/runner/formatter/specdoc_formatter.rb +7 -6
- data/lib/spec/runner/option_parser.rb +41 -5
- data/lib/spec/runner/reporter.rb +3 -15
- data/lib/spec/runner/spec_should_raise_handler.rb +74 -0
- data/lib/spec/runner/specification.rb +33 -14
- data/lib/spec/version.rb +6 -3
- data/vendor/watir/README.txt +1 -1
- metadata +34 -68
- data/bin/test2spec +0 -112
- data/examples/helper_method_spec.rb +0 -12
- data/lib/spec/expectations/have_helper.rb +0 -41
- data/lib/spec/expectations/helper.rb +0 -4
- data/lib/spec/expectations/should_base.rb +0 -52
- data/lib/spec/expectations/should_helper.rb +0 -93
- data/lib/spec/expectations/should_negator.rb +0 -71
- data/lib/spec/test_to_spec/ruby2ruby.rb +0 -492
- data/lib/spec/test_to_spec/sexp_transformer.rb +0 -196
- data/lib/spec/test_to_spec/test_case_ext.rb +0 -22
- data/lib/spec/test_to_spec/translation_test_runner.rb +0 -147
- data/test/spec/expectations/arbitrary_operator_test.rb +0 -55
- data/test/spec/expectations/arbitrary_predicate_test.rb +0 -163
- data/test/spec/expectations/containment_test.rb +0 -129
- data/test/spec/expectations/diff_test.rb +0 -62
- data/test/spec/expectations/identity_test.rb +0 -75
- data/test/spec/expectations/object_equality_test.rb +0 -65
- data/test/spec/expectations/raising_test.rb +0 -106
- data/test/spec/expectations/regex_matching_test.rb +0 -36
- data/test/spec/expectations/should_have_test.rb +0 -169
- data/test/spec/expectations/should_satisfy_test.rb +0 -37
- data/test/spec/expectations/sugar_test.rb +0 -93
- data/test/spec/expectations/supported_symbols_test.rb +0 -33
- data/test/spec/expectations/throwing_test.rb +0 -55
- data/test/spec/expectations/true_false_special_case_test.rb +0 -85
- data/test/spec/expectations/typing_test.rb +0 -108
- data/test/spec/mocks/mock_arg_constraints_test.rb +0 -113
- data/test/spec/mocks/mock_counts_test.rb +0 -431
- data/test/spec/mocks/mock_ordering_test.rb +0 -109
- data/test/spec/mocks/mock_test.rb +0 -220
- data/test/spec/mocks/null_object_test.rb +0 -37
- data/test/spec/runner/backtrace_tweaker_test.rb +0 -90
- data/test/spec/runner/context_matching_test.rb +0 -35
- data/test/spec/runner/context_runner_test.rb +0 -62
- data/test/spec/runner/context_test.rb +0 -191
- data/test/spec/runner/execution_context_test.rb +0 -45
- data/test/spec/runner/formatter/failure_dump_test.rb +0 -94
- data/test/spec/runner/formatter/html_formatter_test.rb +0 -48
- data/test/spec/runner/formatter/progress_bar_formatter_test.rb +0 -56
- data/test/spec/runner/formatter/rdoc_formatter_test.rb +0 -51
- data/test/spec/runner/formatter/specdoc_formatter_test.rb +0 -57
- data/test/spec/runner/kernel_ext_test.rb +0 -13
- data/test/spec/runner/option_parser_test.rb +0 -141
- data/test/spec/runner/reporter_test.rb +0 -128
- data/test/spec/runner/spec_matcher_test.rb +0 -47
- data/test/spec/runner/specification_test.rb +0 -121
- data/test/spec/test_to_spec/ruby_to_ruby_test.rb +0 -79
- data/test/spec/test_to_spec/sexp_transformer_assertion_test.rb +0 -207
- data/test/spec/test_to_spec/sexp_transformer_test.rb +0 -303
- data/test/spec/test_to_spec/test_case_ext_test.rb +0 -25
- data/test/spec/test_to_spec/testfiles/test_unit_api_spec.rb +0 -75
- data/test/spec/test_to_spec/testfiles/test_unit_api_test.rb +0 -70
- data/test/test_classes.rb +0 -102
- data/test/test_helper.rb +0 -32
@@ -3,18 +3,18 @@ module Spec
|
|
3
3
|
module Formatter
|
4
4
|
class RdocFormatter < BaseTextFormatter
|
5
5
|
def add_context(name, first)
|
6
|
-
@output
|
7
|
-
|
6
|
+
@output.print "# #{name}\n"
|
7
|
+
STDOUT.flush
|
8
8
|
end
|
9
9
|
|
10
10
|
def spec_passed(name)
|
11
|
-
@output
|
12
|
-
|
11
|
+
@output.print "# * #{name}\n"
|
12
|
+
STDOUT.flush
|
13
13
|
end
|
14
14
|
|
15
15
|
def spec_failed(name, counter, failure)
|
16
|
-
@output
|
17
|
-
|
16
|
+
@output.print "# * #{name} [#{counter} - FAILED]\n"
|
17
|
+
STDOUT.flush
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
@@ -3,18 +3,19 @@ module Spec
|
|
3
3
|
module Formatter
|
4
4
|
class SpecdocFormatter < BaseTextFormatter
|
5
5
|
def add_context(name, first)
|
6
|
-
@output
|
7
|
-
@output.
|
6
|
+
@output.puts
|
7
|
+
@output.puts name
|
8
|
+
STDOUT.flush
|
8
9
|
end
|
9
10
|
|
10
11
|
def spec_failed(name, counter, failure)
|
11
|
-
@output
|
12
|
-
|
12
|
+
@output.print red("- #{name} (FAILED - #{counter})\n")
|
13
|
+
STDOUT.flush
|
13
14
|
end
|
14
15
|
|
15
16
|
def spec_passed(name)
|
16
|
-
@output
|
17
|
-
|
17
|
+
@output.print green("- #{name}\n")
|
18
|
+
STDOUT.flush
|
18
19
|
end
|
19
20
|
end
|
20
21
|
end
|
@@ -10,12 +10,19 @@ module Spec
|
|
10
10
|
|
11
11
|
formatter = options.formatter_type.new(options.out, options.dry_run, options.colour)
|
12
12
|
reporter = Reporter.new(formatter, options.backtrace_tweaker)
|
13
|
+
|
14
|
+
# this doesn't really belong here.
|
15
|
+
# it should, but the way things are coupled, it doesn't
|
16
|
+
if options.differ_class
|
17
|
+
Spec::Expectations::Should::Base.differ = options.differ_class.new(options.diff_format, options.context_lines, options.colour)
|
18
|
+
end
|
19
|
+
|
13
20
|
ContextRunner.new(reporter, standalone, options.dry_run, options.spec_name)
|
14
21
|
end
|
15
22
|
|
16
23
|
def self.parse(args, standalone, err, out)
|
17
24
|
options = OpenStruct.new
|
18
|
-
options.out = out
|
25
|
+
options.out = out == STDOUT ? Kernel : out
|
19
26
|
options.formatter_type = Formatter::ProgressBarFormatter
|
20
27
|
options.backtrace_tweaker = QuietBacktraceTweaker.new
|
21
28
|
options.spec_name = nil
|
@@ -24,8 +31,36 @@ module Spec
|
|
24
31
|
opts.banner = "Usage: spec [options] (FILE|DIRECTORY|GLOB)+"
|
25
32
|
opts.separator ""
|
26
33
|
|
27
|
-
opts.on("--diff", "Show
|
28
|
-
|
34
|
+
opts.on("-D", "--diff [FORMAT]", "Show diff of objects that are expected to be equal when they are not",
|
35
|
+
"Builtin formats: unified|u|context|c",
|
36
|
+
"You can also specify a custom differ class",
|
37
|
+
"(in which case you should also specify --require)") do |format|
|
38
|
+
require 'spec/expectations/diff' # patches in diff extension
|
39
|
+
|
40
|
+
# TODO make context_lines settable
|
41
|
+
options.context_lines = 3
|
42
|
+
|
43
|
+
case format
|
44
|
+
when 'context', 'c'
|
45
|
+
options.diff_format = :context
|
46
|
+
when 'unified', 'u', '', nil
|
47
|
+
options.diff_format = :unified
|
48
|
+
end
|
49
|
+
|
50
|
+
if [:context,:unified].include? options.diff_format
|
51
|
+
require 'spec/expectations/differs/default'
|
52
|
+
options.differ_class = Spec::Expectations::Differs::Default
|
53
|
+
else
|
54
|
+
begin
|
55
|
+
options.diff_format = :custom
|
56
|
+
options.differ_class = eval(format)
|
57
|
+
rescue NameError
|
58
|
+
err.puts "Couldn't find differ class #{format}"
|
59
|
+
err.puts "Make sure the --require option is specified *before* --diff"
|
60
|
+
exit if out == $stdout
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
29
64
|
end
|
30
65
|
|
31
66
|
opts.on("-c", "--colour", "--color", "Show coloured (red/green) output") do
|
@@ -59,7 +94,8 @@ module Spec
|
|
59
94
|
end
|
60
95
|
|
61
96
|
opts.on("-r", "--require FILE", "Require FILE before running specs",
|
62
|
-
"Useful for loading custom formatters or other extensions"
|
97
|
+
"Useful for loading custom formatters or other extensions",
|
98
|
+
"If this option is used it must come before the others") do |req|
|
63
99
|
require req
|
64
100
|
end
|
65
101
|
|
@@ -93,4 +129,4 @@ module Spec
|
|
93
129
|
end
|
94
130
|
end
|
95
131
|
end
|
96
|
-
end
|
132
|
+
end
|
data/lib/spec/runner/reporter.rb
CHANGED
@@ -74,6 +74,8 @@ module Spec
|
|
74
74
|
end
|
75
75
|
|
76
76
|
class Failure
|
77
|
+
attr_reader :exception
|
78
|
+
|
77
79
|
def initialize(context_name, spec_name, exception)
|
78
80
|
@context_name = context_name
|
79
81
|
@spec_name = spec_name
|
@@ -81,21 +83,7 @@ module Spec
|
|
81
83
|
end
|
82
84
|
|
83
85
|
def header
|
84
|
-
"#{
|
85
|
-
end
|
86
|
-
|
87
|
-
def message
|
88
|
-
@exception.message
|
89
|
-
end
|
90
|
-
|
91
|
-
def backtrace
|
92
|
-
@exception.backtrace.nil? ? "" : @exception.backtrace.join("\n")
|
93
|
-
end
|
94
|
-
|
95
|
-
private
|
96
|
-
|
97
|
-
def class_name
|
98
|
-
@exception.class.name #.split('::').last
|
86
|
+
"#{@exception.class.name} in '#{@context_name} #{@spec_name}'"
|
99
87
|
end
|
100
88
|
|
101
89
|
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
module Spec
|
2
|
+
module Runner
|
3
|
+
class SpecShouldRaiseHandler
|
4
|
+
def initialize(file_and_line_number, opts)
|
5
|
+
@file_and_line_number = file_and_line_number
|
6
|
+
@options = opts
|
7
|
+
@expected_error_class = determine_error_class(opts)
|
8
|
+
@expected_error_message = determine_error_message(opts)
|
9
|
+
end
|
10
|
+
|
11
|
+
def determine_error_class(opts)
|
12
|
+
if candidate = opts[:should_raise]
|
13
|
+
if candidate.is_a?(Class)
|
14
|
+
return candidate
|
15
|
+
elsif candidate.is_a?(Array)
|
16
|
+
return candidate[0]
|
17
|
+
else
|
18
|
+
return Exception
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def determine_error_message(opts)
|
24
|
+
if candidate = opts[:should_raise]
|
25
|
+
if candidate.is_a?(Array)
|
26
|
+
return candidate[1]
|
27
|
+
end
|
28
|
+
end
|
29
|
+
return nil
|
30
|
+
end
|
31
|
+
|
32
|
+
def build_message(exception=nil)
|
33
|
+
if @expected_error_message.nil?
|
34
|
+
message = "specify block expected #{@expected_error_class.to_s}"
|
35
|
+
else
|
36
|
+
message = "specify block expected #{@expected_error_class.new(@expected_error_message.to_s).inspect}"
|
37
|
+
end
|
38
|
+
message << " but raised #{exception.inspect}" if exception
|
39
|
+
message << " but nothing was raised" unless exception
|
40
|
+
message << "\n"
|
41
|
+
message << @file_and_line_number
|
42
|
+
end
|
43
|
+
|
44
|
+
def error_matches?(error)
|
45
|
+
return false unless error.kind_of?(@expected_error_class)
|
46
|
+
unless @expected_error_message.nil?
|
47
|
+
if @expected_error_message.is_a?(Regexp)
|
48
|
+
return false unless error.message =~ @expected_error_message
|
49
|
+
else
|
50
|
+
return false unless error.message == @expected_error_message
|
51
|
+
end
|
52
|
+
end
|
53
|
+
return true
|
54
|
+
end
|
55
|
+
|
56
|
+
def handle(errors)
|
57
|
+
if @expected_error_class
|
58
|
+
if errors.empty?
|
59
|
+
errors << Spec::Expectations::ExpectationNotMetError.new(build_message)
|
60
|
+
else
|
61
|
+
error_to_remove = errors.detect do |error|
|
62
|
+
error_matches?(error)
|
63
|
+
end
|
64
|
+
if error_to_remove.nil?
|
65
|
+
errors.insert(0,Spec::Expectations::ExpectationNotMetError.new(build_message(errors[0])))
|
66
|
+
else
|
67
|
+
errors.delete(error_to_remove)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
@@ -1,16 +1,25 @@
|
|
1
1
|
module Spec
|
2
2
|
module Runner
|
3
3
|
class Specification
|
4
|
-
|
5
|
-
|
4
|
+
|
5
|
+
@@current_spec = nil
|
6
|
+
|
7
|
+
def self.add_listener listener
|
8
|
+
@@current_spec.add_listener listener unless @@current_spec.nil?
|
9
|
+
end
|
10
|
+
|
11
|
+
def initialize(name, opts={}, &block)
|
12
|
+
@from = caller(0)[3]
|
6
13
|
@name = name
|
14
|
+
@options = opts
|
7
15
|
@block = block
|
8
|
-
@
|
16
|
+
@listeners = []
|
9
17
|
end
|
10
18
|
|
11
19
|
def run(reporter=nil, setup_block=nil, teardown_block=nil, dry_run=false, execution_context=nil)
|
12
|
-
reporter.spec_started(@name)
|
20
|
+
reporter.spec_started(@name) unless reporter.nil?
|
13
21
|
return reporter.spec_finished(@name) if dry_run
|
22
|
+
@@current_spec = self
|
14
23
|
execution_context = execution_context || ::Spec::Runner::ExecutionContext.new(self)
|
15
24
|
errors = []
|
16
25
|
begin
|
@@ -25,32 +34,42 @@ module Spec
|
|
25
34
|
begin
|
26
35
|
execution_context.instance_exec(&teardown_block) unless teardown_block.nil?
|
27
36
|
teardown_ok = true
|
28
|
-
@mocks.each do |mock|
|
29
|
-
mock.__verify
|
30
|
-
end
|
31
37
|
rescue => e
|
32
38
|
errors << e
|
39
|
+
ensure
|
40
|
+
notify_after_teardown errors
|
41
|
+
@@current_spec = nil
|
33
42
|
end
|
43
|
+
|
44
|
+
SpecShouldRaiseHandler.new(@from, @options).handle(errors)
|
34
45
|
|
35
46
|
reporter.spec_finished(@name, errors.first, failure_location(setup_ok, spec_ok, teardown_ok)) unless reporter.nil?
|
36
47
|
end
|
37
48
|
|
38
|
-
def add_mock(mock)
|
39
|
-
@mocks << mock
|
40
|
-
end
|
41
|
-
|
42
49
|
def matches_matcher?(matcher)
|
43
50
|
matcher.matches? @name
|
44
51
|
end
|
45
|
-
|
52
|
+
|
53
|
+
def add_listener listener
|
54
|
+
@listeners << listener
|
55
|
+
end
|
56
|
+
|
57
|
+
def notify_after_teardown errors
|
58
|
+
@listeners.each do |listener|
|
59
|
+
begin
|
60
|
+
listener.spec_finished(self) if listener.respond_to?(:spec_finished)
|
61
|
+
rescue => e
|
62
|
+
errors << e
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
46
67
|
private
|
47
|
-
|
48
68
|
def failure_location(setup_ok, spec_ok, teardown_ok)
|
49
69
|
return 'setup' unless setup_ok
|
50
70
|
return @name unless spec_ok
|
51
71
|
return 'teardown' unless teardown_ok
|
52
72
|
end
|
53
|
-
|
54
73
|
end
|
55
74
|
end
|
56
75
|
end
|
data/lib/spec/version.rb
CHANGED
@@ -2,16 +2,19 @@ module Spec
|
|
2
2
|
module VERSION
|
3
3
|
unless defined? MAJOR
|
4
4
|
MAJOR = 0
|
5
|
-
MINOR =
|
6
|
-
TINY =
|
5
|
+
MINOR = 7
|
6
|
+
TINY = 0
|
7
|
+
# RANDOM_TOKEN: 0.846310547367564
|
8
|
+
REV = "$LastChangedRevision: 1039 $".match(/LastChangedRevision: (\d+)/)[1]
|
7
9
|
|
8
10
|
STRING = [MAJOR, MINOR, TINY].join('.')
|
11
|
+
FULL_VERSION = "#{STRING} (r#{REV})"
|
9
12
|
TAG = "REL_" + [MAJOR, MINOR, TINY].join('_')
|
10
13
|
|
11
14
|
NAME = "RSpec"
|
12
15
|
URL = "http://rspec.rubyforge.org/"
|
13
16
|
|
14
|
-
DESCRIPTION = "#{NAME}-#{
|
17
|
+
DESCRIPTION = "#{NAME}-#{FULL_VERSION} - BDD for Ruby\n#{URL}"
|
15
18
|
end
|
16
19
|
end
|
17
20
|
end
|
data/vendor/watir/README.txt
CHANGED
@@ -7,7 +7,7 @@ for web applications that don't yet exist!
|
|
7
7
|
|
8
8
|
Customers, QA people, testers and programmers can translate user story
|
9
9
|
acceptance criteria to executable specs based on RSpec and Watir. Take
|
10
|
-
a look at find_rspecs_home_page.txt (the story)
|
10
|
+
a look at find_rspecs_home_page.txt (the story) and find_rspecs_home_page.rb
|
11
11
|
(the associated spec).
|
12
12
|
|
13
13
|
One of the great benefits of using Watir with RSpec as opposed to using
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.
|
2
|
+
rubygems_version: 0.8.10
|
3
3
|
specification_version: 1
|
4
4
|
name: rspec
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.
|
7
|
-
date: 2006-
|
8
|
-
summary: RSpec-0.
|
6
|
+
version: 0.7.0
|
7
|
+
date: 2006-11-05
|
8
|
+
summary: RSpec-0.7.0 (r1039) - BDD for Ruby http://rspec.rubyforge.org/
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: rspec-devel@rubyforge.org
|
@@ -23,108 +23,75 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
23
23
|
version: 0.0.0
|
24
24
|
version:
|
25
25
|
platform: ruby
|
26
|
-
signing_key:
|
27
|
-
cert_chain:
|
28
|
-
post_install_message:
|
29
26
|
authors:
|
30
|
-
- Steven Baker
|
27
|
+
- - Steven Baker
|
28
|
+
- Aslak Hellesoy
|
29
|
+
- Dave Astels
|
30
|
+
- David Chelimsky
|
31
|
+
- Brian Takita
|
31
32
|
files:
|
32
33
|
- CHANGES
|
33
34
|
- EXAMPLES.rd
|
35
|
+
- MIT-LICENSE
|
34
36
|
- Rakefile
|
35
37
|
- README
|
36
38
|
- lib/spec.rb
|
39
|
+
- lib/spec/callback.rb
|
37
40
|
- lib/spec/expectations.rb
|
38
41
|
- lib/spec/mocks.rb
|
39
42
|
- lib/spec/runner.rb
|
40
43
|
- lib/spec/version.rb
|
41
44
|
- lib/spec/expectations/diff.rb
|
42
|
-
- lib/spec/expectations/
|
43
|
-
- lib/spec/expectations/
|
44
|
-
- lib/spec/expectations/
|
45
|
-
- lib/spec/expectations/helper.rb
|
46
|
-
- lib/spec/expectations/should_base.rb
|
47
|
-
- lib/spec/expectations/should_helper.rb
|
48
|
-
- lib/spec/expectations/should_negator.rb
|
45
|
+
- lib/spec/expectations/errors.rb
|
46
|
+
- lib/spec/expectations/extensions.rb
|
47
|
+
- lib/spec/expectations/should.rb
|
49
48
|
- lib/spec/expectations/sugar.rb
|
49
|
+
- lib/spec/expectations/differs/default.rb
|
50
|
+
- lib/spec/expectations/extensions/inspect_for_expectation_not_met_error.rb
|
51
|
+
- lib/spec/expectations/extensions/numeric.rb
|
52
|
+
- lib/spec/expectations/extensions/object.rb
|
53
|
+
- lib/spec/expectations/extensions/symbol.rb
|
54
|
+
- lib/spec/expectations/should/base.rb
|
55
|
+
- lib/spec/expectations/should/have.rb
|
56
|
+
- lib/spec/expectations/should/not.rb
|
57
|
+
- lib/spec/expectations/should/should.rb
|
50
58
|
- lib/spec/mocks/argument_expectation.rb
|
51
|
-
- lib/spec/mocks/
|
59
|
+
- lib/spec/mocks/error_generator.rb
|
60
|
+
- lib/spec/mocks/errors.rb
|
52
61
|
- lib/spec/mocks/message_expectation.rb
|
53
62
|
- lib/spec/mocks/mock.rb
|
63
|
+
- lib/spec/mocks/mock_handler.rb
|
64
|
+
- lib/spec/mocks/mock_methods.rb
|
54
65
|
- lib/spec/mocks/order_group.rb
|
55
|
-
- lib/spec/
|
66
|
+
- lib/spec/mocks/extensions/object.rb
|
56
67
|
- lib/spec/rake/spectask.rb
|
68
|
+
- lib/spec/rake/verify_rcov.rb
|
57
69
|
- lib/spec/runner/backtrace_tweaker.rb
|
58
70
|
- lib/spec/runner/context.rb
|
59
71
|
- lib/spec/runner/context_eval.rb
|
60
72
|
- lib/spec/runner/context_runner.rb
|
61
73
|
- lib/spec/runner/execution_context.rb
|
62
74
|
- lib/spec/runner/formatter.rb
|
63
|
-
- lib/spec/runner/instance_exec.rb
|
64
|
-
- lib/spec/runner/kernel_ext.rb
|
65
75
|
- lib/spec/runner/option_parser.rb
|
66
76
|
- lib/spec/runner/reporter.rb
|
67
77
|
- lib/spec/runner/spec_matcher.rb
|
78
|
+
- lib/spec/runner/spec_should_raise_handler.rb
|
68
79
|
- lib/spec/runner/specification.rb
|
80
|
+
- lib/spec/runner/extensions/kernel.rb
|
81
|
+
- lib/spec/runner/extensions/object.rb
|
69
82
|
- lib/spec/runner/formatter/base_text_formatter.rb
|
70
83
|
- lib/spec/runner/formatter/html_formatter.rb
|
71
84
|
- lib/spec/runner/formatter/progress_bar_formatter.rb
|
72
85
|
- lib/spec/runner/formatter/rdoc_formatter.rb
|
73
86
|
- lib/spec/runner/formatter/specdoc_formatter.rb
|
74
|
-
- lib/spec/test_to_spec/ruby2ruby.rb
|
75
|
-
- lib/spec/test_to_spec/sexp_transformer.rb
|
76
|
-
- lib/spec/test_to_spec/test_case_ext.rb
|
77
|
-
- lib/spec/test_to_spec/translation_test_runner.rb
|
78
|
-
- test/test_classes.rb
|
79
|
-
- test/test_helper.rb
|
80
|
-
- test/spec/expectations/arbitrary_operator_test.rb
|
81
|
-
- test/spec/expectations/arbitrary_predicate_test.rb
|
82
|
-
- test/spec/expectations/containment_test.rb
|
83
|
-
- test/spec/expectations/diff_test.rb
|
84
|
-
- test/spec/expectations/identity_test.rb
|
85
|
-
- test/spec/expectations/object_equality_test.rb
|
86
|
-
- test/spec/expectations/raising_test.rb
|
87
|
-
- test/spec/expectations/regex_matching_test.rb
|
88
|
-
- test/spec/expectations/should_have_test.rb
|
89
|
-
- test/spec/expectations/should_satisfy_test.rb
|
90
|
-
- test/spec/expectations/sugar_test.rb
|
91
|
-
- test/spec/expectations/supported_symbols_test.rb
|
92
|
-
- test/spec/expectations/throwing_test.rb
|
93
|
-
- test/spec/expectations/true_false_special_case_test.rb
|
94
|
-
- test/spec/expectations/typing_test.rb
|
95
|
-
- test/spec/mocks/mock_arg_constraints_test.rb
|
96
|
-
- test/spec/mocks/mock_counts_test.rb
|
97
|
-
- test/spec/mocks/mock_ordering_test.rb
|
98
|
-
- test/spec/mocks/mock_test.rb
|
99
|
-
- test/spec/mocks/null_object_test.rb
|
100
|
-
- test/spec/runner/backtrace_tweaker_test.rb
|
101
|
-
- test/spec/runner/context_matching_test.rb
|
102
|
-
- test/spec/runner/context_runner_test.rb
|
103
|
-
- test/spec/runner/context_test.rb
|
104
|
-
- test/spec/runner/execution_context_test.rb
|
105
|
-
- test/spec/runner/kernel_ext_test.rb
|
106
|
-
- test/spec/runner/option_parser_test.rb
|
107
|
-
- test/spec/runner/reporter_test.rb
|
108
|
-
- test/spec/runner/spec_matcher_test.rb
|
109
|
-
- test/spec/runner/specification_test.rb
|
110
|
-
- test/spec/runner/formatter/failure_dump_test.rb
|
111
|
-
- test/spec/runner/formatter/html_formatter_test.rb
|
112
|
-
- test/spec/runner/formatter/progress_bar_formatter_test.rb
|
113
|
-
- test/spec/runner/formatter/rdoc_formatter_test.rb
|
114
|
-
- test/spec/runner/formatter/specdoc_formatter_test.rb
|
115
|
-
- test/spec/test_to_spec/ruby_to_ruby_test.rb
|
116
|
-
- test/spec/test_to_spec/sexp_transformer_assertion_test.rb
|
117
|
-
- test/spec/test_to_spec/sexp_transformer_test.rb
|
118
|
-
- test/spec/test_to_spec/test_case_ext_test.rb
|
119
|
-
- test/spec/test_to_spec/testfiles/test_unit_api_spec.rb
|
120
|
-
- test/spec/test_to_spec/testfiles/test_unit_api_test.rb
|
121
87
|
- examples/custom_formatter.rb
|
122
88
|
- examples/file_accessor.rb
|
123
89
|
- examples/file_accessor_spec.rb
|
124
|
-
- examples/
|
90
|
+
- examples/helper_method_example.rb
|
125
91
|
- examples/io_processor.rb
|
126
92
|
- examples/io_processor_spec.rb
|
127
93
|
- examples/mocking_example.rb
|
94
|
+
- examples/partial_mock_example.rb
|
128
95
|
- examples/predicate_example.rb
|
129
96
|
- examples/stack.rb
|
130
97
|
- examples/stack_spec.rb
|
@@ -151,7 +118,6 @@ extra_rdoc_files:
|
|
151
118
|
- CHANGES
|
152
119
|
executables:
|
153
120
|
- spec
|
154
|
-
- test2spec
|
155
121
|
extensions: []
|
156
122
|
|
157
123
|
requirements: []
|