rspec 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. data/CHANGES +35 -0
  2. data/MIT-LICENSE +1 -1
  3. data/README +9 -44
  4. data/Rakefile +34 -51
  5. data/TODO +0 -1
  6. data/UPGRADE +0 -24
  7. data/bin/spec +0 -0
  8. data/bin/spec_translator +0 -0
  9. data/examples/pure/behave_as_example.rb +0 -0
  10. data/examples/pure/partial_mock_example.rb +1 -0
  11. data/examples/stories/calculator.rb +1 -1
  12. data/lib/autotest/rspec.rb +7 -9
  13. data/lib/spec/example.rb +1 -1
  14. data/lib/spec/example/configuration.rb +30 -16
  15. data/lib/spec/example/example_group.rb +2 -1
  16. data/lib/spec/example/example_group_factory.rb +23 -21
  17. data/lib/spec/example/example_group_methods.rb +18 -5
  18. data/lib/spec/example/example_matcher.rb +0 -0
  19. data/lib/spec/example/example_methods.rb +6 -0
  20. data/lib/spec/example/module_inclusion_warnings.rb +37 -0
  21. data/lib/spec/expectations/differs/default.rb +1 -1
  22. data/lib/spec/expectations/extensions/object.rb +4 -12
  23. data/lib/spec/expectations/handler.rb +8 -0
  24. data/lib/spec/extensions.rb +1 -0
  25. data/lib/spec/extensions/metaclass.rb +7 -0
  26. data/lib/spec/extensions/object.rb +0 -4
  27. data/lib/spec/matchers/change.rb +1 -1
  28. data/lib/spec/matchers/has.rb +1 -11
  29. data/lib/spec/matchers/operator_matcher.rb +0 -0
  30. data/lib/spec/matchers/raise_error.rb +53 -30
  31. data/lib/spec/mocks.rb +1 -1
  32. data/lib/spec/mocks/argument_constraint_matchers.rb +5 -1
  33. data/lib/spec/mocks/argument_expectation.rb +26 -0
  34. data/lib/spec/mocks/extensions.rb +1 -0
  35. data/lib/spec/mocks/framework.rb +15 -0
  36. data/lib/spec/mocks/message_expectation.rb +29 -5
  37. data/lib/spec/mocks/mock.rb +9 -7
  38. data/lib/spec/mocks/proxy.rb +26 -12
  39. data/lib/spec/rake/spectask.rb +5 -5
  40. data/lib/spec/runner/backtrace_tweaker.rb +1 -1
  41. data/lib/spec/runner/formatter/base_formatter.rb +2 -3
  42. data/lib/spec/runner/formatter/base_text_formatter.rb +2 -2
  43. data/lib/spec/runner/formatter/failing_example_groups_formatter.rb +4 -8
  44. data/lib/spec/runner/formatter/html_formatter.rb +18 -14
  45. data/lib/spec/runner/formatter/nested_text_formatter.rb +65 -0
  46. data/lib/spec/runner/formatter/profile_formatter.rb +4 -0
  47. data/lib/spec/runner/formatter/progress_bar_formatter.rb +5 -1
  48. data/lib/spec/runner/formatter/specdoc_formatter.rb +1 -1
  49. data/lib/spec/runner/formatter/story/plain_text_formatter.rb +18 -7
  50. data/lib/spec/runner/option_parser.rb +17 -15
  51. data/lib/spec/runner/options.rb +37 -14
  52. data/lib/spec/runner/reporter.rb +15 -11
  53. data/lib/spec/story/extensions/regexp.rb +2 -2
  54. data/lib/spec/story/extensions/string.rb +2 -2
  55. data/lib/spec/story/runner.rb +9 -5
  56. data/lib/spec/story/runner/plain_text_story_runner.rb +2 -2
  57. data/lib/spec/story/runner/scenario_runner.rb +8 -0
  58. data/lib/spec/story/runner/story_mediator.rb +1 -1
  59. data/lib/spec/story/runner/story_runner.rb +3 -1
  60. data/lib/spec/story/step.rb +4 -4
  61. data/lib/spec/story/story.rb +8 -11
  62. data/lib/spec/story/world.rb +0 -1
  63. data/lib/spec/version.rb +2 -2
  64. data/plugins/mock_frameworks/rspec.rb +2 -0
  65. data/spec/autotest/rspec_spec.rb +12 -10
  66. data/spec/spec/example/configuration_spec.rb +0 -0
  67. data/spec/spec/example/example_group/described_module_spec.rb +20 -0
  68. data/spec/spec/example/example_group/warning_messages_spec.rb +76 -0
  69. data/spec/spec/example/example_group_factory_spec.rb +117 -102
  70. data/spec/spec/example/example_group_methods_spec.rb +51 -17
  71. data/spec/spec/example/example_group_spec.rb +13 -1
  72. data/spec/spec/example/example_methods_spec.rb +28 -6
  73. data/spec/spec/example/nested_example_group_spec.rb +12 -0
  74. data/spec/spec/example/predicate_matcher_spec.rb +0 -0
  75. data/spec/spec/expectations/differs/default_spec.rb +27 -9
  76. data/spec/spec/matchers/be_spec.rb +24 -0
  77. data/spec/spec/matchers/has_spec.rb +16 -0
  78. data/spec/spec/matchers/raise_error_spec.rb +124 -0
  79. data/spec/spec/mocks/{bug_report_10263.rb → bug_report_10263_spec.rb} +0 -0
  80. data/spec/spec/mocks/bug_report_11545_spec.rb +2 -0
  81. data/spec/spec/mocks/failing_mock_argument_constraints_spec.rb +8 -0
  82. data/spec/spec/mocks/hash_including_matcher_spec.rb +32 -0
  83. data/spec/spec/mocks/mock_spec.rb +56 -37
  84. data/spec/spec/mocks/partial_mock_spec.rb +41 -5
  85. data/spec/spec/mocks/passing_mock_argument_constraints_spec.rb +6 -0
  86. data/spec/spec/runner/execution_context_spec.rb +7 -1
  87. data/spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb +3 -2
  88. data/spec/spec/runner/formatter/html_formatted-1.8.6.html +30 -25
  89. data/spec/spec/runner/formatter/html_formatter_spec.rb +0 -3
  90. data/spec/spec/runner/formatter/nested_text_formatter_spec.rb +333 -0
  91. data/spec/spec/runner/formatter/progress_bar_formatter_spec.rb +12 -2
  92. data/spec/spec/runner/formatter/spec_mate_formatter_spec.rb +2 -2
  93. data/spec/spec/runner/formatter/specdoc_formatter_spec.rb +110 -78
  94. data/spec/spec/runner/formatter/story/plain_text_formatter_spec.rb +105 -1
  95. data/spec/spec/runner/formatter/text_mate_formatted-1.8.6.html +33 -28
  96. data/spec/spec/runner/option_parser_spec.rb +65 -49
  97. data/spec/spec/runner/options_spec.rb +103 -17
  98. data/spec/spec/runner/reporter_spec.rb +10 -7
  99. data/spec/spec/runner/spec_drb.opts +1 -0
  100. data/spec/spec/runner/spec_parser_spec.rb +10 -4
  101. data/spec/spec/story/runner/plain_text_story_runner_spec.rb +14 -13
  102. data/spec/spec/story/runner/scenario_runner_spec.rb +124 -52
  103. data/spec/spec/story/runner/story_mediator_spec.rb +2 -2
  104. data/spec/spec/story/runner/story_runner_spec.rb +40 -2
  105. data/spec/spec/story/runner_spec.rb +59 -72
  106. data/spec/spec/story/step_spec.rb +20 -1
  107. data/spec/spec/story/story_spec.rb +2 -2
  108. data/stories/all.rb +1 -1
  109. data/stories/example_groups/stories.rb +4 -3
  110. data/stories/mock_framework_integration/stories.rb +7 -0
  111. data/stories/mock_framework_integration/use_flexmock.story +9 -0
  112. data/stories/resources/spec/spec_with_flexmock.rb +18 -0
  113. metadata +21 -18
  114. data/pre_commit/lib/pre_commit.rb +0 -4
  115. data/pre_commit/lib/pre_commit/core.rb +0 -50
  116. data/pre_commit/lib/pre_commit/pre_commit.rb +0 -54
  117. data/pre_commit/lib/pre_commit/rspec.rb +0 -111
  118. data/pre_commit/lib/pre_commit/rspec_on_rails.rb +0 -313
  119. data/pre_commit/spec/pre_commit/pre_commit_spec.rb +0 -15
  120. data/pre_commit/spec/pre_commit/rspec_on_rails_spec.rb +0 -36
  121. data/pre_commit/spec/spec_helper.rb +0 -3
  122. data/pre_commit/spec/spec_suite.rb +0 -11
@@ -47,7 +47,7 @@ module Spec
47
47
  @runner.scenarios.first.name.should == "scenario name"
48
48
  @runner.scenarios.first.story.should == @runner.stories.first
49
49
  end
50
-
50
+
51
51
  it "should create a given scenario step if one matches" do
52
52
  pending("need to untangle the dark mysteries of the story runner - something needs to get stubbed here") do
53
53
  story = @mediator.create_story "title", "narrative"
@@ -120,7 +120,7 @@ module Spec
120
120
  it "should pass options to the stories it creates" do
121
121
  @mediator = StoryMediator.new @step_group, @runner, :foo => :bar
122
122
  @mediator.create_story "story title", "story narrative"
123
-
123
+
124
124
  run_stories
125
125
 
126
126
  @runner.stories.first[:foo].should == :bar
@@ -68,6 +68,44 @@ module Spec
68
68
  worlds[0].should_not == worlds[1]
69
69
  end
70
70
 
71
+ it "should return false if the scenario runner returns false ever" do
72
+ #given
73
+ stub_scenario_runner = stub_everything
74
+ story_runner = StoryRunner.new(stub_scenario_runner)
75
+ story_runner.Story 'story', 'narrative' do
76
+ Scenario 'scenario1' do end
77
+ Scenario 'scenario2' do end
78
+ end
79
+
80
+ # expect
81
+ stub_scenario_runner.should_receive(:run).once.and_return(false,true)
82
+
83
+ # when
84
+ success = story_runner.run_stories
85
+
86
+ #then
87
+ success.should == false
88
+ end
89
+
90
+ it "should return true if the scenario runner returns true for all scenarios" do
91
+ #given
92
+ stub_scenario_runner = stub_everything
93
+ story_runner = StoryRunner.new(stub_scenario_runner)
94
+ story_runner.Story 'story', 'narrative' do
95
+ Scenario 'scenario1' do end
96
+ Scenario 'scenario2' do end
97
+ end
98
+
99
+ # expect
100
+ stub_scenario_runner.should_receive(:run).once.and_return(true,true)
101
+
102
+ # when
103
+ success = story_runner.run_stories
104
+
105
+ #then
106
+ success.should == true
107
+ end
108
+
71
109
  it 'should use the provided world creator to create worlds' do
72
110
  # given
73
111
  stub_scenario_runner = stub_everything
@@ -225,7 +263,7 @@ module Spec
225
263
  steps1 = StepGroup.new
226
264
  steps1.add :when, step1
227
265
 
228
- story_runner.Story 'title', 'narrative', :steps => steps1 do
266
+ story_runner.Story 'title', 'narrative', :steps_for => steps1 do
229
267
  Scenario 'first scenario' do
230
268
  When 'step'
231
269
  end
@@ -237,7 +275,7 @@ module Spec
237
275
  steps2 = StepGroup.new
238
276
  steps2.add :when, step2
239
277
 
240
- story_runner.Story 'title2', 'narrative', :steps => steps2 do
278
+ story_runner.Story 'title2', 'narrative', :steps_for => steps2 do
241
279
  Scenario 'second scenario' do
242
280
  When 'step'
243
281
  end
@@ -1,29 +1,19 @@
1
1
  require File.dirname(__FILE__) + '/story_helper'
2
+ require 'spec/runner/formatter/story/plain_text_formatter'
3
+ require 'spec/runner/formatter/story/html_formatter'
2
4
 
3
5
  module Spec
4
6
  module Story
5
7
  describe Runner, "module" do
6
- def dev_null
7
- io = StringIO.new
8
- def io.write(str)
9
- str.to_s.size
10
- end
11
- return io
12
- end
13
-
14
- before :each do
15
- Kernel.stub!(:at_exit)
16
- @stdout, $stdout = $stdout, dev_null
17
- @argv = Array.new(ARGV)
18
- @runner_module = Runner.dup
8
+ before(:each) do
19
9
  @world_creator = World.dup
20
- @runner_module.module_eval { @run_options = @story_runner = @scenario_runner = @world_creator = nil }
10
+ @runner_module = Runner.dup
11
+ @runner_module.instance_eval {@story_runner = nil}
12
+ @runner_module.stub!(:register_exit_hook)
21
13
  end
22
14
 
23
- after :each do
24
- $stdout = @stdout
25
- ARGV.replace @argv
26
- @runner_module.module_eval { @run_options = @story_runner = @scenario_runner = @world_creator = nil }
15
+ def create_options(args=[])
16
+ Spec::Runner::OptionParser.parse(args, StringIO.new, StringIO.new)
27
17
  end
28
18
 
29
19
  it 'should wire up a singleton StoryRunner' do
@@ -32,75 +22,72 @@ module Spec
32
22
 
33
23
  it 'should set its options based on ARGV' do
34
24
  # given
35
- ARGV << '--dry-run'
36
-
25
+ @runner_module.should_receive(:run_options).and_return(
26
+ create_options(['--dry-run'])
27
+ )
28
+
37
29
  # when
38
30
  options = @runner_module.run_options
39
31
 
40
32
  # then
41
33
  options.dry_run.should be_true
42
34
  end
43
-
44
- it 'should add a reporter to the runner classes' do
45
- # given
46
- story_runner = mock('story runner', :null_object => true)
47
- scenario_runner = mock('scenario runner', :null_object => true)
48
- world_creator = mock('world', :null_object => true)
49
-
50
- @runner_module::class_eval { @world_creator = world_creator }
51
- @runner_module::StoryRunner.stub!(:new).and_return(story_runner)
52
- @runner_module::ScenarioRunner.stub!(:new).and_return(scenario_runner)
53
-
54
- # expect
55
- world_creator.should_receive(:add_listener).with(an_instance_of(Spec::Runner::Formatter::Story::PlainTextFormatter))
56
- story_runner.should_receive(:add_listener).with(an_instance_of(Spec::Runner::Formatter::Story::PlainTextFormatter))
57
- scenario_runner.should_receive(:add_listener).with(an_instance_of(Spec::Runner::Formatter::Story::PlainTextFormatter))
58
-
59
- # when
60
- @runner_module.story_runner
61
- end
62
35
 
63
- it 'should add a documenter to the runner classes if one is specified' do
64
- # given
65
- ARGV << "--format" << "html"
66
- story_runner = mock('story runner', :null_object => true)
67
- scenario_runner = mock('scenario runner', :null_object => true)
68
- world_creator = mock('world', :null_object => true)
36
+ describe "initialization" do
69
37
 
70
- @runner_module::class_eval { @world_creator = world_creator }
71
- @runner_module::StoryRunner.stub!(:new).and_return(story_runner)
72
- @runner_module::ScenarioRunner.stub!(:new).and_return(scenario_runner)
38
+ before(:each) do
39
+ # given
40
+ @story_runner = mock('story runner', :null_object => true)
41
+ @scenario_runner = mock('scenario runner', :null_object => true)
42
+ @world_creator = mock('world', :null_object => true)
73
43
 
74
- # expect
75
- world_creator.should_receive(:add_listener).with(an_instance_of(Spec::Runner::Formatter::Story::HtmlFormatter))
76
- story_runner.should_receive(:add_listener).with(an_instance_of(Spec::Runner::Formatter::Story::HtmlFormatter))
77
- scenario_runner.should_receive(:add_listener).with(an_instance_of(Spec::Runner::Formatter::Story::HtmlFormatter))
44
+ @runner_module.stub!(:world_creator).and_return(@world_creator)
45
+ @runner_module.stub!(:create_story_runner).and_return(@story_runner)
46
+ @runner_module.stub!(:scenario_runner).and_return(@scenario_runner)
47
+ end
48
+
49
+ it 'should add a reporter to the runner classes' do
50
+ @runner_module.should_receive(:run_options).and_return(
51
+ create_options
52
+ )
78
53
 
79
- # when
80
- @runner_module.story_runner
81
- end
54
+ # expect
55
+ @world_creator.should_receive(:add_listener).with(an_instance_of(Spec::Runner::Formatter::Story::PlainTextFormatter))
56
+ @story_runner.should_receive(:add_listener).with(an_instance_of(Spec::Runner::Formatter::Story::PlainTextFormatter))
57
+ @scenario_runner.should_receive(:add_listener).with(an_instance_of(Spec::Runner::Formatter::Story::PlainTextFormatter))
58
+
59
+ # when
60
+ @runner_module.story_runner
61
+ end
82
62
 
83
- it 'should add any registered listener to the runner classes' do
84
- # given
85
- ARGV << "--format" << "html"
86
- story_runner = mock('story runner', :null_object => true)
87
- scenario_runner = mock('scenario runner', :null_object => true)
88
- world_creator = mock('world', :null_object => true)
63
+ it 'should add a documenter to the runner classes if one is specified' do
89
64
 
90
- @runner_module::class_eval { @world_creator = world_creator }
91
- @runner_module::StoryRunner.stub!(:new).and_return(story_runner)
92
- @runner_module::ScenarioRunner.stub!(:new).and_return(scenario_runner)
65
+ @runner_module.should_receive(:run_options).and_return(
66
+ create_options(["--format","html"])
67
+ )
68
+
69
+ # expect
70
+ @world_creator.should_receive(:add_listener).with(an_instance_of(Spec::Runner::Formatter::Story::HtmlFormatter))
71
+ @story_runner.should_receive(:add_listener).with(an_instance_of(Spec::Runner::Formatter::Story::HtmlFormatter))
72
+ @scenario_runner.should_receive(:add_listener).with(an_instance_of(Spec::Runner::Formatter::Story::HtmlFormatter))
93
73
 
94
- listener = Object.new
74
+ # when
75
+ @runner_module.story_runner
76
+ end
77
+
78
+ it 'should add any registered listener to the runner classes' do
79
+ # given
80
+ listener = Object.new
95
81
 
96
- # expect
97
- world_creator.should_receive(:add_listener).with(listener)
98
- story_runner.should_receive(:add_listener).with(listener)
99
- scenario_runner.should_receive(:add_listener).with(listener)
82
+ # expect
83
+ @world_creator.should_receive(:add_listener).with(listener)
84
+ @story_runner.should_receive(:add_listener).with(listener)
85
+ @scenario_runner.should_receive(:add_listener).with(listener)
100
86
 
101
- # when
102
- @runner_module.register_listener listener
87
+ # when
88
+ @runner_module.register_listener listener
89
+ end
90
+ end
103
91
  end
104
- end
105
92
  end
106
93
  end
@@ -42,6 +42,16 @@ module Spec
42
42
  step = Step.new("1 2 $three") {}
43
43
  step.matches?("1 2 c").should be_true
44
44
  end
45
+
46
+ it "should match a text string with a dollar sign ($)" do
47
+ step = Step.new("show me the $$money") {}
48
+ step.matches?("show me the $kwan").should be_true
49
+ end
50
+
51
+ it "should match a string with an escaped dollar sign" do
52
+ step = Step.new("show me the \$money") {}
53
+ step.matches?("show me the $kwan").should be_true
54
+ end
45
55
 
46
56
  it "should not match a different string" do
47
57
  step = Step.new("this text") {}
@@ -101,7 +111,16 @@ module Spec
101
111
  step.matches?("he is very cool").should be_true
102
112
  step.parse_args("he is very cool").should == ['he', 'very', 'cool']
103
113
  end
104
-
114
+
115
+ it "should match a regex with a dollar sign ($)" do
116
+ step = Step.new(/show me the \$\d+/) {}
117
+ step.matches?("show me the $123").should be_true
118
+ end
119
+
120
+ it "should match a regex with a dollar sign and named variable" do
121
+ step = Step.new(/show me the \$$money/) {}
122
+ step.matches?("show me the $123").should be_true
123
+ end
105
124
  end
106
125
 
107
126
  describe Step do
@@ -28,7 +28,7 @@ module Spec
28
28
  error.should be_nil
29
29
  end
30
30
 
31
- it "should raise when error raised running in another object" do
31
+ it "should raise an error when an error is raised running in another object" do
32
32
  #given
33
33
  story = Story.new 'title', 'narrative' do
34
34
  raise "this is raised in the story"
@@ -42,7 +42,7 @@ module Spec
42
42
  end
43
43
 
44
44
  it "should use the steps it is told to using a StepGroup" do
45
- story = Story.new("title", "narrative", :steps => steps = StepGroup.new) do end
45
+ story = Story.new("title", "narrative", :steps_for => steps = StepGroup.new) do end
46
46
  assignee = mock("assignee")
47
47
  assignee.should_receive(:use).with(steps)
48
48
  story.assign_steps_to(assignee)
data/stories/all.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require File.join(File.dirname(__FILE__), *%w[helper])
2
2
 
3
- ["example_groups","interop"].each do |dir|
3
+ %w[example_groups interop mock_framework_integration].each do |dir|
4
4
  require File.join(File.dirname(__FILE__), "#{dir}/stories")
5
5
  end
@@ -1,7 +1,8 @@
1
1
  require File.join(File.dirname(__FILE__), *%w[.. helper])
2
2
 
3
3
  with_steps_for :running_rspec do
4
- Dir["#{File.dirname(__FILE__)}/*"].each do |file|
5
- run file if File.file?(file) && !(file =~ /\.rb$/)
6
- end
4
+ run File.dirname(__FILE__) + "/nested_groups"
5
+ # Dir["#{File.dirname(__FILE__)}/*"].each do |file|
6
+ # run file if File.file?(file) && !(file =~ /\.rb$/)
7
+ # end
7
8
  end
@@ -0,0 +1,7 @@
1
+ require File.join(File.dirname(__FILE__), *%w[.. helper])
2
+
3
+ with_steps_for :running_rspec do
4
+ Dir["#{File.dirname(__FILE__)}/*"].each do |file|
5
+ run file if File.file?(file) && !(file =~ /\.rb$/)
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ Story: Getting correct output
2
+
3
+ As an RSpec user who prefers flexmock
4
+ I want to be able to use flexmock without rspec mocks interfering
5
+
6
+ Scenario: Mock with flexmock
7
+ Given the file spec/spec_with_flexmock.rb
8
+ When I run it with the ruby interpreter
9
+ Then the exit code should be 0
@@ -0,0 +1,18 @@
1
+ $:.push File.join(File.dirname(__FILE__), *%w[.. .. .. lib])
2
+ require "rubygems"
3
+ require 'spec'
4
+
5
+ Spec::Runner.configure do |config|
6
+ config.mock_with :flexmock
7
+ end
8
+
9
+ # This is to ensure that requiring spec/mocks/framework doesn't interfere w/ flexmock
10
+ require 'spec/mocks/framework'
11
+
12
+ describe "something" do
13
+ it "should receive some message" do
14
+ target = Object.new
15
+ flexmock(target).should_receive(:foo).once
16
+ lambda {flexmock_verify}.should raise_error
17
+ end
18
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.4
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: 2008-01-31 00:00:00 -06:00
12
+ date: 2008-05-26 00:00:00 -05:00
13
13
  default_executable: spec
14
14
  dependencies: []
15
15
 
@@ -30,6 +30,7 @@ files:
30
30
  - MIT-LICENSE
31
31
  - Rakefile
32
32
  - README
33
+ - RSpec.tmbundle
33
34
  - TODO
34
35
  - UPGRADE
35
36
  - lib/autotest/discover.rb
@@ -41,6 +42,7 @@ files:
41
42
  - lib/spec/example/example_group_methods.rb
42
43
  - lib/spec/example/example_matcher.rb
43
44
  - lib/spec/example/example_methods.rb
45
+ - lib/spec/example/module_inclusion_warnings.rb
44
46
  - lib/spec/example/module_reopening_fix.rb
45
47
  - lib/spec/example/pending.rb
46
48
  - lib/spec/example/shared_example_group.rb
@@ -54,6 +56,7 @@ files:
54
56
  - lib/spec/expectations.rb
55
57
  - lib/spec/extensions/class.rb
56
58
  - lib/spec/extensions/main.rb
59
+ - lib/spec/extensions/metaclass.rb
57
60
  - lib/spec/extensions/object.rb
58
61
  - lib/spec/extensions.rb
59
62
  - lib/spec/interop/test/unit/autorunner.rb
@@ -84,6 +87,8 @@ files:
84
87
  - lib/spec/mocks/error_generator.rb
85
88
  - lib/spec/mocks/errors.rb
86
89
  - lib/spec/mocks/extensions/object.rb
90
+ - lib/spec/mocks/extensions.rb
91
+ - lib/spec/mocks/framework.rb
87
92
  - lib/spec/mocks/message_expectation.rb
88
93
  - lib/spec/mocks/methods.rb
89
94
  - lib/spec/mocks/mock.rb
@@ -104,6 +109,7 @@ files:
104
109
  - lib/spec/runner/formatter/failing_example_groups_formatter.rb
105
110
  - lib/spec/runner/formatter/failing_examples_formatter.rb
106
111
  - lib/spec/runner/formatter/html_formatter.rb
112
+ - lib/spec/runner/formatter/nested_text_formatter.rb
107
113
  - lib/spec/runner/formatter/profile_formatter.rb
108
114
  - lib/spec/runner/formatter/progress_bar_formatter.rb
109
115
  - lib/spec/runner/formatter/snippet_extractor.rb
@@ -151,6 +157,9 @@ files:
151
157
  - spec/spec
152
158
  - spec/spec/example
153
159
  - spec/spec/example/configuration_spec.rb
160
+ - spec/spec/example/example_group
161
+ - spec/spec/example/example_group/described_module_spec.rb
162
+ - spec/spec/example/example_group/warning_messages_spec.rb
154
163
  - spec/spec/example/example_group_class_definition_spec.rb
155
164
  - spec/spec/example/example_group_factory_spec.rb
156
165
  - spec/spec/example/example_group_methods_spec.rb
@@ -214,7 +223,7 @@ files:
214
223
  - spec/spec/mocks/at_least_spec.rb
215
224
  - spec/spec/mocks/at_most_spec.rb
216
225
  - spec/spec/mocks/bug_report_10260_spec.rb
217
- - spec/spec/mocks/bug_report_10263.rb
226
+ - spec/spec/mocks/bug_report_10263_spec.rb
218
227
  - spec/spec/mocks/bug_report_11545_spec.rb
219
228
  - spec/spec/mocks/bug_report_15719_spec.rb
220
229
  - spec/spec/mocks/bug_report_7611_spec.rb
@@ -222,6 +231,7 @@ files:
222
231
  - spec/spec/mocks/bug_report_8165_spec.rb
223
232
  - spec/spec/mocks/bug_report_8302_spec.rb
224
233
  - spec/spec/mocks/failing_mock_argument_constraints_spec.rb
234
+ - spec/spec/mocks/hash_including_matcher_spec.rb
225
235
  - spec/spec/mocks/mock_ordering_spec.rb
226
236
  - spec/spec/mocks/mock_space_spec.rb
227
237
  - spec/spec/mocks/mock_spec.rb
@@ -255,6 +265,7 @@ files:
255
265
  - spec/spec/runner/formatter/html_formatted-1.8.6-jruby.html
256
266
  - spec/spec/runner/formatter/html_formatted-1.8.6.html
257
267
  - spec/spec/runner/formatter/html_formatter_spec.rb
268
+ - spec/spec/runner/formatter/nested_text_formatter_spec.rb
258
269
  - spec/spec/runner/formatter/profile_formatter_spec.rb
259
270
  - spec/spec/runner/formatter/progress_bar_formatter_spec.rb
260
271
  - spec/spec/runner/formatter/snippet_extractor_spec.rb
@@ -280,6 +291,7 @@ files:
280
291
  - spec/spec/runner/resources/a_foo.rb
281
292
  - spec/spec/runner/resources/a_spec.rb
282
293
  - spec/spec/runner/spec.opts
294
+ - spec/spec/runner/spec_drb.opts
283
295
  - spec/spec/runner/spec_parser
284
296
  - spec/spec/runner/spec_parser/spec_parser_fixture.rb
285
297
  - spec/spec/runner/spec_parser_spec.rb
@@ -404,6 +416,9 @@ files:
404
416
  - stories/interop/examples_and_tests_together
405
417
  - stories/interop/stories.rb
406
418
  - stories/interop/test_case_with_should_methods
419
+ - stories/mock_framework_integration
420
+ - stories/mock_framework_integration/stories.rb
421
+ - stories/mock_framework_integration/use_flexmock.story
407
422
  - stories/pending_stories
408
423
  - stories/pending_stories/README
409
424
  - stories/resources
@@ -415,6 +430,7 @@ files:
415
430
  - stories/resources/spec
416
431
  - stories/resources/spec/example_group_with_should_methods.rb
417
432
  - stories/resources/spec/simple_spec.rb
433
+ - stories/resources/spec/spec_with_flexmock.rb
418
434
  - stories/resources/steps
419
435
  - stories/resources/steps/running_rspec.rb
420
436
  - stories/resources/stories
@@ -422,19 +438,6 @@ files:
422
438
  - stories/resources/test
423
439
  - stories/resources/test/spec_and_test_together.rb
424
440
  - stories/resources/test/test_case_with_should_methods.rb
425
- - pre_commit/lib
426
- - pre_commit/lib/pre_commit
427
- - pre_commit/lib/pre_commit/core.rb
428
- - pre_commit/lib/pre_commit/pre_commit.rb
429
- - pre_commit/lib/pre_commit/rspec.rb
430
- - pre_commit/lib/pre_commit/rspec_on_rails.rb
431
- - pre_commit/lib/pre_commit.rb
432
- - pre_commit/spec
433
- - pre_commit/spec/pre_commit
434
- - pre_commit/spec/pre_commit/pre_commit_spec.rb
435
- - pre_commit/spec/pre_commit/rspec_on_rails_spec.rb
436
- - pre_commit/spec/spec_helper.rb
437
- - pre_commit/spec/spec_suite.rb
438
441
  - rake_tasks/examples.rake
439
442
  - rake_tasks/examples_with_rcov.rake
440
443
  - rake_tasks/failing_examples_with_html.rake
@@ -466,9 +469,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
466
469
  requirements: []
467
470
 
468
471
  rubyforge_project: rspec
469
- rubygems_version: 1.0.1
472
+ rubygems_version: 1.1.1
470
473
  signing_key:
471
474
  specification_version: 2
472
- summary: RSpec-1.1.3 (build 20080131122909) - BDD for Ruby http://rspec.rubyforge.org/
475
+ summary: RSpec-1.1.4 (build 20080526202855) - BDD for Ruby http://rspec.rubyforge.org/
473
476
  test_files: []
474
477