rspec 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +57 -32
- data/EXAMPLES.rd +0 -0
- data/Rakefile +22 -21
- data/bin/spec +9 -11
- data/doc/README +1 -3
- data/doc/plugin/syntax.rb +27 -5
- data/doc/src/core_team.page +22 -0
- data/doc/src/default.css +11 -11
- data/doc/src/default.template +0 -1
- data/doc/src/documentation/index.page +183 -8
- data/doc/src/documentation/meta.info +7 -7
- data/doc/src/documentation/mocks.page +168 -109
- data/doc/src/documentation/underscores.page +20 -0
- data/doc/src/examples.page +2 -1
- data/doc/src/images/David_and_Aslak.jpg +0 -0
- data/doc/src/images/Whats_That_Dude.jpg +0 -0
- data/doc/src/index.page +70 -3
- data/doc/src/meta.info +18 -11
- data/doc/src/tools/index.page +40 -134
- data/doc/src/tools/meta.info +9 -3
- data/doc/src/tools/rails.page +3 -1
- data/doc/src/tools/rake.page +20 -3
- data/doc/src/tools/rcov.page +19 -0
- data/doc/src/tools/spec.page +99 -0
- data/doc/src/tools/test2rspec.page +2 -4
- data/doc/src/tutorials/index.page +52 -0
- data/doc/src/tutorials/meta.info +31 -0
- data/doc/src/tutorials/notes.txt +252 -0
- data/doc/src/tutorials/stack.rb +11 -0
- data/doc/src/tutorials/stack_01.page +224 -0
- data/doc/src/tutorials/stack_02.page +180 -0
- data/doc/src/tutorials/stack_03.page +291 -0
- data/doc/src/tutorials/stack_04.page +203 -0
- data/doc/src/tutorials/stack_04.page.orig +123 -0
- data/doc/src/tutorials/stack_05.page +90 -0
- data/doc/src/tutorials/stack_05.page.orig +124 -0
- data/doc/src/tutorials/stack_06.page +359 -0
- data/doc/src/tutorials/stack_06.page.orig +359 -0
- data/doc/src/tutorials/stack_spec.rb +41 -0
- data/examples/airport_spec.rb +4 -4
- data/examples/{spec_framework_spec.rb → bdd_framework_spec.rb} +6 -7
- data/examples/mocking_spec.rb +0 -5
- data/examples/stack_spec.rb +6 -7
- data/examples/sugar_spec.rb +14 -0
- data/lib/spec/api.rb +5 -2
- data/lib/spec/api/helper/should_base.rb +17 -22
- data/lib/spec/api/helper/should_helper.rb +4 -3
- data/lib/spec/api/helper/should_negator.rb +3 -2
- data/lib/spec/api/mocks/argument_expectation.rb +104 -0
- data/lib/spec/api/{mock.rb → mocks/message_expectation.rb} +47 -96
- data/lib/spec/api/mocks/mock.rb +63 -0
- data/lib/spec/api/mocks/order_group.rb +21 -0
- data/lib/spec/api/sugar.rb +47 -0
- data/lib/spec/rake/rcov_verify.rb +45 -0
- data/lib/spec/rake/spectask.rb +41 -56
- data/lib/spec/runner.rb +4 -1
- data/lib/spec/runner/backtrace_tweaker.rb +24 -3
- data/lib/spec/runner/base_text_formatter.rb +28 -0
- data/lib/spec/runner/context.rb +21 -18
- data/lib/spec/runner/context_runner.rb +20 -31
- data/lib/spec/runner/execution_context.rb +3 -3
- data/lib/spec/runner/kernel_ext.rb +10 -1
- data/lib/spec/runner/option_parser.rb +32 -14
- data/lib/spec/runner/progress_bar_formatter.rb +21 -0
- data/lib/spec/runner/rdoc_formatter.rb +15 -5
- data/lib/spec/runner/reporter.rb +100 -0
- data/lib/spec/runner/specdoc_formatter.rb +20 -0
- data/lib/spec/runner/specification.rb +42 -22
- data/lib/spec/version.rb +1 -1
- data/test/rcov/rcov_testtask.rb +1 -0
- data/test/spec/api/duck_type_test.rb +4 -4
- data/test/spec/api/helper/raising_test.rb +37 -17
- data/test/spec/api/{mock_arg_constraints_test.rb → mocks/mock_arg_constraints_test.rb} +10 -4
- data/test/spec/api/mocks/mock_ordering_test.rb +62 -0
- data/test/spec/api/{mock_test.rb → mocks/mock_test.rb} +30 -7
- data/test/spec/api/mocks/null_object_test.rb +31 -0
- data/test/spec/api/sugar_test.rb +71 -0
- data/test/spec/runner/backtrace_tweaker_test.rb +52 -4
- data/test/spec/runner/context_runner_test.rb +41 -21
- data/test/spec/runner/context_test.rb +60 -32
- data/test/spec/runner/execution_context_test.rb +4 -3
- data/test/spec/runner/failure_dump_test.rb +92 -0
- data/test/spec/runner/kernel_ext_test.rb +1 -2
- data/test/spec/runner/option_parser_test.rb +48 -28
- data/test/spec/runner/progress_bar_formatter_test.rb +48 -0
- data/test/spec/runner/rdoc_formatter_test.rb +31 -4
- data/test/spec/runner/reporter_test.rb +103 -0
- data/test/spec/runner/specdoc_formatter_test.rb +50 -0
- data/test/spec/runner/specification_test.rb +49 -11
- data/test/test_helper.rb +1 -4
- metadata +46 -15
- data/doc/src/community.page +0 -7
- data/doc/src/documentation/api.page +0 -185
- data/doc/src/why_rspec.page +0 -7
- data/examples/empty_stack_spec.rb +0 -22
- data/examples/team_spec.rb +0 -30
- data/lib/spec/api/duck_type.rb +0 -16
- data/lib/spec/runner/simple_text_reporter.rb +0 -88
- data/test/rcov/rcov_verify.rb +0 -28
- data/test/spec/runner/simple_text_reporter_test.rb +0 -123
@@ -1,23 +1,50 @@
|
|
1
1
|
require File.dirname(__FILE__) + '/../../test_helper'
|
2
2
|
module Spec
|
3
3
|
module Runner
|
4
|
-
class
|
4
|
+
class RdocFormatterTest < Test::Unit::TestCase
|
5
5
|
|
6
6
|
def setup
|
7
7
|
@io = StringIO.new
|
8
|
-
@formatter =
|
8
|
+
@formatter = RdocFormatter.new(@io)
|
9
9
|
end
|
10
10
|
|
11
11
|
def test_should_push_out_context
|
12
|
-
@formatter.add_context("context")
|
12
|
+
@formatter.add_context("context", :ignored)
|
13
13
|
assert_equal("# context\n", @io.string)
|
14
14
|
end
|
15
15
|
|
16
16
|
def test_should_push_out_spec
|
17
|
-
@formatter.
|
17
|
+
@formatter.spec_passed("spec")
|
18
18
|
assert_equal("# * spec\n", @io.string)
|
19
19
|
end
|
20
20
|
|
21
|
+
def test_should_push_out_failed_spec
|
22
|
+
@formatter.spec_failed("spec", 98)
|
23
|
+
assert_equal("# * spec [98 - FAILED]\n", @io.string)
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_should_produce_no_summary
|
27
|
+
@formatter.dump_summary(nil,nil,nil,nil)
|
28
|
+
assert(@io.string.empty?)
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_should_produce_nothing_on_start_dump
|
32
|
+
@formatter.start_dump
|
33
|
+
assert(@io.string.empty?)
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
class RdocFormatterDryRunTest < Test::Unit::TestCase
|
38
|
+
def setup
|
39
|
+
@io = StringIO.new
|
40
|
+
@formatter = RdocFormatter.new(@io, true)
|
41
|
+
end
|
42
|
+
|
43
|
+
def test_should_not_produce_summary_on_dry_run
|
44
|
+
@formatter.dump_summary(4,3,2,1)
|
45
|
+
assert_equal("", @io.string)
|
46
|
+
end
|
21
47
|
end
|
48
|
+
|
22
49
|
end
|
23
50
|
end
|
@@ -0,0 +1,103 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../../test_helper'
|
2
|
+
|
3
|
+
module Spec
|
4
|
+
module Runner
|
5
|
+
class ReporterTest < Test::Unit::TestCase
|
6
|
+
|
7
|
+
def setup
|
8
|
+
@io = StringIO.new
|
9
|
+
@backtrace_tweaker = Spec::Api::Mock.new("backtrace tweaker")
|
10
|
+
@formatter = Spec::Api::Mock.new("formatter")
|
11
|
+
@reporter = Reporter.new(@formatter, @backtrace_tweaker)
|
12
|
+
end
|
13
|
+
|
14
|
+
def test_should_push_time_to_reporter
|
15
|
+
@formatter.should_receive(:start_dump)
|
16
|
+
@formatter.should_receive(:dump_summary) do |time, a, b, c|
|
17
|
+
assert_match(/[0-9].[0-9|e|-]+/, time.to_s)
|
18
|
+
end
|
19
|
+
@reporter.start
|
20
|
+
@reporter.end
|
21
|
+
@reporter.dump
|
22
|
+
end
|
23
|
+
|
24
|
+
def test_should_push_stats_to_reporter_even_with_no_data
|
25
|
+
@formatter.should_receive(:start_dump)
|
26
|
+
@formatter.should_receive(:dump_summary).with(:anything, 0, 0, 0)
|
27
|
+
@reporter.dump
|
28
|
+
end
|
29
|
+
|
30
|
+
def test_should_push_context_to_formatter
|
31
|
+
@formatter.should_receive(:add_context).never
|
32
|
+
@reporter.add_context "context"
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_should_account_for_context_in_stats
|
36
|
+
@formatter.should_receive(:add_context).with("context", true)
|
37
|
+
@reporter.add_context "context"
|
38
|
+
end
|
39
|
+
|
40
|
+
def test_should_account_for_spec_in_stats_for_pass
|
41
|
+
spec = Specification.new("spec")
|
42
|
+
@formatter.should_receive(:spec_passed)
|
43
|
+
@formatter.should_receive(:start_dump)
|
44
|
+
@formatter.should_receive(:dump_summary).with(:anything, 0, 1, 0)
|
45
|
+
@reporter.add_spec spec
|
46
|
+
@reporter.dump
|
47
|
+
end
|
48
|
+
|
49
|
+
def test_should_account_for_spec_and_error_in_stats_for_pass
|
50
|
+
spec = Specification.new("spec")
|
51
|
+
@formatter.should_receive(:add_context)
|
52
|
+
@formatter.should_receive(:spec_failed).with(spec, 1)
|
53
|
+
@formatter.should_receive(:start_dump)
|
54
|
+
@formatter.should_receive(:dump_failure).with(1, :anything)
|
55
|
+
@formatter.should_receive(:dump_summary).with(:anything, 1, 1, 1)
|
56
|
+
@backtrace_tweaker.should.receive(:tweak_backtrace)
|
57
|
+
@reporter.add_context "context"
|
58
|
+
@reporter.add_spec spec, RuntimeError.new
|
59
|
+
@reporter.dump
|
60
|
+
end
|
61
|
+
|
62
|
+
def test_should_handle_multiple_contexts_same_name
|
63
|
+
@formatter.should_receive(:add_context).with("context", true)
|
64
|
+
@formatter.should_receive(:add_context).with("context", false).exactly(2).times
|
65
|
+
@formatter.should_receive(:start_dump)
|
66
|
+
@formatter.should_receive(:dump_summary).with(:anything, 3, 0, 0)
|
67
|
+
@reporter.add_context "context"
|
68
|
+
@reporter.add_context "context"
|
69
|
+
@reporter.add_context "context"
|
70
|
+
@reporter.dump
|
71
|
+
end
|
72
|
+
|
73
|
+
def test_should_handle_multiple_specs_same_name
|
74
|
+
error = RuntimeError.new
|
75
|
+
@formatter.should_receive(:add_context).exactly(2).times
|
76
|
+
@formatter.should_receive(:spec_passed).with("spec").exactly(2).times
|
77
|
+
@formatter.should_receive(:spec_failed).with("spec", 1)
|
78
|
+
@formatter.should_receive(:spec_failed).with("spec", 2)
|
79
|
+
@formatter.should_receive(:dump_failure).exactly(2).times
|
80
|
+
@formatter.should_receive(:start_dump)
|
81
|
+
@formatter.should_receive(:dump_summary).with(:anything, 2, 4, 2)
|
82
|
+
@backtrace_tweaker.should.receive(:tweak_backtrace)
|
83
|
+
@reporter.add_context "context"
|
84
|
+
@reporter.add_spec "spec"
|
85
|
+
@reporter.add_spec "spec", error
|
86
|
+
@reporter.add_context "context"
|
87
|
+
@reporter.add_spec "spec"
|
88
|
+
@reporter.add_spec "spec", error
|
89
|
+
@reporter.dump
|
90
|
+
end
|
91
|
+
|
92
|
+
def test_should_delegate_to_backtrace_tweaker
|
93
|
+
@formatter.should_receive(:add_context)
|
94
|
+
@formatter.should_receive(:spec_failed)
|
95
|
+
@backtrace_tweaker.should.receive(:tweak_backtrace)
|
96
|
+
@reporter.add_context "context"
|
97
|
+
@reporter.add_spec "spec", RuntimeError.new
|
98
|
+
@backtrace_tweaker.__verify
|
99
|
+
end
|
100
|
+
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/../../test_helper'
|
2
|
+
module Spec
|
3
|
+
module Runner
|
4
|
+
class SpecdocFormatterTest < Test::Unit::TestCase
|
5
|
+
|
6
|
+
def setup
|
7
|
+
@io = StringIO.new
|
8
|
+
@formatter = SpecdocFormatter.new(@io)
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_should_push_context_name
|
12
|
+
@formatter.add_context("context", :ignored)
|
13
|
+
assert_equal("\ncontext\n", @io.string)
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_should_push_passing_spec_name
|
17
|
+
@formatter.spec_passed("spec")
|
18
|
+
assert_equal("- spec\n", @io.string)
|
19
|
+
end
|
20
|
+
|
21
|
+
def test_should_push_failing_spec_name_and_failure_number
|
22
|
+
@formatter.spec_failed("spec", 98)
|
23
|
+
assert_equal("- spec (FAILED - 98)\n", @io.string)
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_should_produce_standard_summary
|
27
|
+
@formatter.dump_summary(4,3,2,1)
|
28
|
+
assert_equal("\nFinished in 4 seconds\n\n3 contexts, 2 specifications, 1 failure\n", @io.string)
|
29
|
+
end
|
30
|
+
|
31
|
+
def test_should_push_nothing_on_start_dump
|
32
|
+
@formatter.start_dump
|
33
|
+
assert_equal("", @io.string)
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
37
|
+
|
38
|
+
class SpecdocFormatterDryRunTest < Test::Unit::TestCase
|
39
|
+
def setup
|
40
|
+
@io = StringIO.new
|
41
|
+
@formatter = SpecdocFormatter.new(@io, true)
|
42
|
+
end
|
43
|
+
|
44
|
+
def test_should_not_produce_summary_on_dry_run
|
45
|
+
@formatter.dump_summary(4,3,2,1)
|
46
|
+
assert_equal("", @io.string)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -12,27 +12,27 @@ module Spec
|
|
12
12
|
self.should.not.be.instance_of Specification
|
13
13
|
self.should.be.instance_of ExecutionContext
|
14
14
|
end
|
15
|
-
@reporter.should.receive(:add_spec).with "should pass",
|
15
|
+
@reporter.should.receive(:add_spec).with "should pass", nil, nil
|
16
16
|
spec.run @reporter
|
17
17
|
end
|
18
18
|
|
19
19
|
def test_should_add_itself_to_reporter_when_passes
|
20
20
|
spec = Specification.new("spec") {}
|
21
|
-
@reporter.should.receive(:add_spec).with "spec",
|
21
|
+
@reporter.should.receive(:add_spec).with "spec", nil, nil
|
22
22
|
spec.run(@reporter)
|
23
23
|
end
|
24
24
|
|
25
25
|
def test_should_add_itself_to_reporter_when_fails
|
26
26
|
error = RuntimeError.new
|
27
27
|
spec = Specification.new("spec") { raise error }
|
28
|
-
@reporter.should.receive(:add_spec).with "spec",
|
28
|
+
@reporter.should.receive(:add_spec).with "spec", error, "spec"
|
29
29
|
spec.run(@reporter)
|
30
30
|
end
|
31
31
|
|
32
|
-
def
|
32
|
+
def test_should_add_itself_to_reporter_when_calling_run_dry
|
33
33
|
spec = Specification.new("spec") {}
|
34
34
|
@reporter.should.receive(:add_spec).with "spec"
|
35
|
-
spec.
|
35
|
+
spec.run(@reporter, nil, nil, true)
|
36
36
|
end
|
37
37
|
|
38
38
|
def test_should_verify_mocks_after_teardown
|
@@ -40,9 +40,9 @@ module Spec
|
|
40
40
|
mock = mock("a mock")
|
41
41
|
mock.should.receive(:poke)
|
42
42
|
end
|
43
|
-
@reporter.should.receive(:add_spec) do |spec_name,
|
43
|
+
@reporter.should.receive(:add_spec) do |spec_name, error|
|
44
44
|
spec_name.should.equal "spec"
|
45
|
-
|
45
|
+
error.message.should.match /expected 'poke' once, but received it 0 times/
|
46
46
|
end
|
47
47
|
spec.run @reporter
|
48
48
|
end
|
@@ -54,14 +54,52 @@ module Spec
|
|
54
54
|
teardown = lambda do
|
55
55
|
raise "in teardown"
|
56
56
|
end
|
57
|
-
@reporter.should.receive(:add_spec) do |spec,
|
58
|
-
|
59
|
-
|
60
|
-
|
57
|
+
@reporter.should.receive(:add_spec) do |spec, error, location|
|
58
|
+
spec.should.equal "spec"
|
59
|
+
location.should.equal "spec"
|
60
|
+
error.message.should.equal "in body"
|
61
61
|
end
|
62
62
|
spec.run @reporter, nil, teardown
|
63
63
|
end
|
64
64
|
|
65
|
+
def test_should_supply_setup_as_spec_name_if_failure_in_setup
|
66
|
+
spec = Specification.new("spec") do
|
67
|
+
end
|
68
|
+
setup = lambda do
|
69
|
+
raise "in setup"
|
70
|
+
end
|
71
|
+
@reporter.should.receive(:add_spec) do |name, error, location|
|
72
|
+
name.should.equal "spec"
|
73
|
+
error.message.should.equal "in setup"
|
74
|
+
location.should.equal "setup"
|
75
|
+
end
|
76
|
+
spec.run @reporter, setup
|
77
|
+
end
|
78
|
+
|
79
|
+
def test_should_supply_teardown_as_failure_location_if_failure_in_teardown
|
80
|
+
spec = Specification.new("spec") do
|
81
|
+
end
|
82
|
+
teardown = lambda do
|
83
|
+
raise "in teardown"
|
84
|
+
end
|
85
|
+
@reporter.should.receive(:add_spec) do |name, error, location|
|
86
|
+
name.should.equal "spec"
|
87
|
+
error.message.should.equal "in teardown"
|
88
|
+
location.should.equal "teardown"
|
89
|
+
end
|
90
|
+
spec.run @reporter, nil, teardown
|
91
|
+
end
|
92
|
+
|
93
|
+
def test_should_match_if_name_matches
|
94
|
+
spec = Specification.new("spec")
|
95
|
+
assert spec.matches?"spec"
|
96
|
+
end
|
97
|
+
|
98
|
+
def test_should_not_match_if_name_does_not_match
|
99
|
+
spec = Specification.new("specification")
|
100
|
+
assert (!spec.matches?"spec")
|
101
|
+
end
|
102
|
+
|
65
103
|
def teardown
|
66
104
|
@reporter.__verify
|
67
105
|
end
|
data/test/test_helper.rb
CHANGED
@@ -3,7 +3,4 @@ require 'stringio'
|
|
3
3
|
$LOAD_PATH.push File.dirname(__FILE__) + '/../lib'
|
4
4
|
$LOAD_PATH.push File.dirname(__FILE__) + '/../test'
|
5
5
|
require 'spec'
|
6
|
-
|
7
|
-
mock_context_runner.should. receive(:add_context).any.number.of.times
|
8
|
-
mock_context_runner.should.receive(:run).any.number.of.times
|
9
|
-
Spec::Runner::Context.context_runner = mock_context_runner
|
6
|
+
$context_runner = ::Spec::Runner::OptionParser.create_context_runner(['test'], false, STDERR, STDOUT)
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.10
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rspec
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.5.
|
7
|
-
date: 2006-
|
6
|
+
version: 0.5.4
|
7
|
+
date: 2006-05-13
|
8
8
|
summary: Behaviour Specification Framework for Ruby
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -27,17 +27,17 @@ authors:
|
|
27
27
|
- Steven Baker
|
28
28
|
files:
|
29
29
|
- CHANGES
|
30
|
+
- EXAMPLES.rd
|
30
31
|
- Rakefile
|
31
32
|
- README
|
32
33
|
- lib/spec.rb
|
33
34
|
- lib/spec/api.rb
|
34
35
|
- lib/spec/runner.rb
|
35
36
|
- lib/spec/version.rb
|
36
|
-
- lib/spec/api/duck_type.rb
|
37
37
|
- lib/spec/api/exceptions.rb
|
38
38
|
- lib/spec/api/expectations.rb
|
39
39
|
- lib/spec/api/helper.rb
|
40
|
-
- lib/spec/api/
|
40
|
+
- lib/spec/api/sugar.rb
|
41
41
|
- lib/spec/api/helper/have_helper.rb
|
42
42
|
- lib/spec/api/helper/instance_helper.rb
|
43
43
|
- lib/spec/api/helper/instance_negator.rb
|
@@ -48,25 +48,31 @@ files:
|
|
48
48
|
- lib/spec/api/helper/should_base.rb
|
49
49
|
- lib/spec/api/helper/should_helper.rb
|
50
50
|
- lib/spec/api/helper/should_negator.rb
|
51
|
+
- lib/spec/api/mocks/argument_expectation.rb
|
52
|
+
- lib/spec/api/mocks/message_expectation.rb
|
53
|
+
- lib/spec/api/mocks/mock.rb
|
54
|
+
- lib/spec/api/mocks/order_group.rb
|
55
|
+
- lib/spec/rake/rcov_verify.rb
|
51
56
|
- lib/spec/rake/spectask.rb
|
52
57
|
- lib/spec/runner/backtrace_tweaker.rb
|
58
|
+
- lib/spec/runner/base_text_formatter.rb
|
53
59
|
- lib/spec/runner/context.rb
|
54
60
|
- lib/spec/runner/context_runner.rb
|
55
61
|
- lib/spec/runner/execution_context.rb
|
56
62
|
- lib/spec/runner/instance_exec.rb
|
57
63
|
- lib/spec/runner/kernel_ext.rb
|
58
64
|
- lib/spec/runner/option_parser.rb
|
65
|
+
- lib/spec/runner/progress_bar_formatter.rb
|
59
66
|
- lib/spec/runner/rdoc_formatter.rb
|
60
|
-
- lib/spec/runner/
|
67
|
+
- lib/spec/runner/reporter.rb
|
68
|
+
- lib/spec/runner/specdoc_formatter.rb
|
61
69
|
- lib/spec/runner/specification.rb
|
62
70
|
- lib/spec/tool/command_line.rb
|
63
71
|
- lib/spec/tool/test_unit_translator.rb
|
64
72
|
- test/test_helper.rb
|
65
73
|
- test/rcov/rcov_testtask.rb
|
66
|
-
- test/rcov/rcov_verify.rb
|
67
74
|
- test/spec/api/duck_type_test.rb
|
68
|
-
- test/spec/api/
|
69
|
-
- test/spec/api/mock_test.rb
|
75
|
+
- test/spec/api/sugar_test.rb
|
70
76
|
- test/spec/api/helper/arbitrary_predicate_test.rb
|
71
77
|
- test/spec/api/helper/containment_test.rb
|
72
78
|
- test/spec/api/helper/equality_test.rb
|
@@ -78,26 +84,32 @@ files:
|
|
78
84
|
- test/spec/api/helper/throwing_test.rb
|
79
85
|
- test/spec/api/helper/true_false_special_case_test.rb
|
80
86
|
- test/spec/api/helper/typing_test.rb
|
87
|
+
- test/spec/api/mocks/mock_arg_constraints_test.rb
|
88
|
+
- test/spec/api/mocks/mock_ordering_test.rb
|
89
|
+
- test/spec/api/mocks/mock_test.rb
|
90
|
+
- test/spec/api/mocks/null_object_test.rb
|
81
91
|
- test/spec/runner/backtrace_tweaker_test.rb
|
82
92
|
- test/spec/runner/context_runner_test.rb
|
83
93
|
- test/spec/runner/context_test.rb
|
84
94
|
- test/spec/runner/execution_context_test.rb
|
95
|
+
- test/spec/runner/failure_dump_test.rb
|
85
96
|
- test/spec/runner/kernel_ext_test.rb
|
86
97
|
- test/spec/runner/option_parser_test.rb
|
98
|
+
- test/spec/runner/progress_bar_formatter_test.rb
|
87
99
|
- test/spec/runner/rdoc_formatter_test.rb
|
88
|
-
- test/spec/runner/
|
100
|
+
- test/spec/runner/reporter_test.rb
|
101
|
+
- test/spec/runner/specdoc_formatter_test.rb
|
89
102
|
- test/spec/runner/specification_test.rb
|
90
103
|
- test/spec/tool/command_line_test.rb
|
91
104
|
- test/spec/tool/test_unit_api_spec.rb
|
92
105
|
- test/spec/tool/test_unit_api_test.rb
|
93
106
|
- test/spec/tool/test_unit_translator_test.rb
|
94
107
|
- examples/airport_spec.rb
|
95
|
-
- examples/
|
108
|
+
- examples/bdd_framework_spec.rb
|
96
109
|
- examples/mocking_spec.rb
|
97
|
-
- examples/spec_framework_spec.rb
|
98
110
|
- examples/stack.rb
|
99
111
|
- examples/stack_spec.rb
|
100
|
-
- examples/
|
112
|
+
- examples/sugar_spec.rb
|
101
113
|
- doc/config.yaml
|
102
114
|
- doc/plugin
|
103
115
|
- doc/README
|
@@ -105,7 +117,7 @@ files:
|
|
105
117
|
- doc/src
|
106
118
|
- doc/plugin/syntax.rb
|
107
119
|
- doc/reference/rspec reference.page
|
108
|
-
- doc/src/
|
120
|
+
- doc/src/core_team.page
|
109
121
|
- doc/src/default.css
|
110
122
|
- doc/src/default.template
|
111
123
|
- doc/src/documentation
|
@@ -114,18 +126,36 @@ files:
|
|
114
126
|
- doc/src/index.page
|
115
127
|
- doc/src/meta.info
|
116
128
|
- doc/src/tools
|
129
|
+
- doc/src/tutorials
|
117
130
|
- doc/src/ul.gif
|
118
|
-
- doc/src/why_rspec.page
|
119
|
-
- doc/src/documentation/api.page
|
120
131
|
- doc/src/documentation/index.page
|
121
132
|
- doc/src/documentation/meta.info
|
122
133
|
- doc/src/documentation/mocks.page
|
134
|
+
- doc/src/documentation/underscores.page
|
135
|
+
- doc/src/images/David_and_Aslak.jpg
|
123
136
|
- doc/src/images/ul.gif
|
137
|
+
- doc/src/images/Whats_That_Dude.jpg
|
124
138
|
- doc/src/tools/index.page
|
125
139
|
- doc/src/tools/meta.info
|
126
140
|
- doc/src/tools/rails.page
|
127
141
|
- doc/src/tools/rake.page
|
142
|
+
- doc/src/tools/rcov.page
|
143
|
+
- doc/src/tools/spec.page
|
128
144
|
- doc/src/tools/test2rspec.page
|
145
|
+
- doc/src/tutorials/index.page
|
146
|
+
- doc/src/tutorials/meta.info
|
147
|
+
- doc/src/tutorials/notes.txt
|
148
|
+
- doc/src/tutorials/stack.rb
|
149
|
+
- doc/src/tutorials/stack_01.page
|
150
|
+
- doc/src/tutorials/stack_02.page
|
151
|
+
- doc/src/tutorials/stack_03.page
|
152
|
+
- doc/src/tutorials/stack_04.page
|
153
|
+
- doc/src/tutorials/stack_04.page.orig
|
154
|
+
- doc/src/tutorials/stack_05.page
|
155
|
+
- doc/src/tutorials/stack_05.page.orig
|
156
|
+
- doc/src/tutorials/stack_06.page
|
157
|
+
- doc/src/tutorials/stack_06.page.orig
|
158
|
+
- doc/src/tutorials/stack_spec.rb
|
129
159
|
test_files: []
|
130
160
|
|
131
161
|
rdoc_options:
|
@@ -137,6 +167,7 @@ rdoc_options:
|
|
137
167
|
extra_rdoc_files:
|
138
168
|
- README
|
139
169
|
- CHANGES
|
170
|
+
- EXAMPLES.rd
|
140
171
|
executables:
|
141
172
|
- spec
|
142
173
|
- test2rspec
|