rspec 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +12 -1
- data/Manifest.txt +3 -3
- data/Rakefile +0 -1
- data/TODO.txt +8 -0
- data/bin/autospec +0 -1
- data/examples/pure/autogenerated_docstrings_example.rb +4 -4
- data/lib/autotest/discover.rb +1 -1
- data/lib/spec/example/errors.rb +19 -4
- data/lib/spec/example/example_group.rb +8 -1
- data/lib/spec/example/example_group_methods.rb +26 -20
- data/lib/spec/example/example_methods.rb +2 -7
- data/lib/spec/matchers/be.rb +18 -18
- data/lib/spec/matchers/be_close.rb +5 -5
- data/lib/spec/matchers/eql.rb +6 -6
- data/lib/spec/matchers/equal.rb +6 -6
- data/lib/spec/matchers/exist.rb +10 -5
- data/lib/spec/matchers/has.rb +2 -2
- data/lib/spec/matchers/have.rb +8 -8
- data/lib/spec/matchers/include.rb +5 -5
- data/lib/spec/matchers/match.rb +9 -9
- data/lib/spec/matchers/operator_matcher.rb +17 -17
- data/lib/spec/matchers/raise_error.rb +17 -17
- data/lib/spec/matchers/respond_to.rb +5 -4
- data/lib/spec/matchers/satisfy.rb +5 -5
- data/lib/spec/matchers/simple_matcher.rb +8 -8
- data/lib/spec/matchers/throw_symbol.rb +3 -3
- data/lib/spec/mocks.rb +0 -11
- data/lib/spec/mocks/argument_constraints.rb +5 -25
- data/lib/spec/mocks/argument_expectation.rb +19 -41
- data/lib/spec/mocks/message_expectation.rb +1 -1
- data/lib/spec/story/runner.rb +1 -1
- data/lib/spec/version.rb +2 -2
- data/rspec.gemspec +6 -6
- data/spec/{autotest_helper.rb → autotest/autotest_helper.rb} +2 -2
- data/spec/{autotest_matchers.rb → autotest/autotest_matchers.rb} +0 -0
- data/spec/autotest/discover_spec.rb +1 -1
- data/spec/autotest/rspec_spec.rb +1 -1
- data/spec/rspec_suite.rb +0 -1
- data/spec/spec/example/example_methods_spec.rb +36 -3
- data/spec/spec/example/pending_module_spec.rb +76 -0
- data/spec/spec/matchers/respond_to_spec.rb +6 -6
- data/spec/spec/mocks/failing_mock_argument_constraints_spec.rb +0 -34
- data/spec/spec/mocks/mock_spec.rb +6 -0
- data/spec/spec/mocks/passing_mock_argument_constraints_spec.rb +0 -44
- data/spec/spec/runner/drb_command_line_spec.rb +1 -1
- data/spec/spec/{example → runner/formatter}/base_formatter_spec.rb +1 -1
- data/spec/spec/runner/option_parser_spec.rb +1 -1
- data/spec/spec/runner/reporter_spec.rb +1 -1
- data/spec/spec/story/runner/story_runner_spec.rb +3 -3
- data/spec/spec/story/world_spec.rb +7 -7
- metadata +7 -7
@@ -51,7 +51,7 @@ module Spec
|
|
51
51
|
|
52
52
|
it "should run against local server" do
|
53
53
|
out = run_spec_via_druby(['--version'])
|
54
|
-
out.should =~ /rspec
|
54
|
+
out.should =~ /rspec \d+\.\d+\.\d+.*/n
|
55
55
|
end
|
56
56
|
|
57
57
|
it "should output green colorized text when running with --colour option" do
|
@@ -91,7 +91,7 @@ describe "OptionParser" do
|
|
91
91
|
it "should print version to stdout" do
|
92
92
|
options = parse(["--version"])
|
93
93
|
@out.rewind
|
94
|
-
@out.read.should match(/rspec
|
94
|
+
@out.read.should match(/rspec \d+\.\d+\.\d+/n)
|
95
95
|
end
|
96
96
|
|
97
97
|
it "should require file when require specified" do
|
@@ -235,13 +235,13 @@ module Spec
|
|
235
235
|
it 'should find a scenario in the current story by name' do
|
236
236
|
# given
|
237
237
|
story_runner = StoryRunner.new(ScenarioRunner.new)
|
238
|
-
|
238
|
+
scenario = nil
|
239
239
|
|
240
240
|
story_runner.Story 'title', 'narrative' do
|
241
241
|
Scenario 'first scenario' do
|
242
242
|
end
|
243
243
|
Scenario 'second scenario' do
|
244
|
-
|
244
|
+
scenario = StoryRunner.scenario_from_current_story 'first scenario'
|
245
245
|
end
|
246
246
|
end
|
247
247
|
|
@@ -249,7 +249,7 @@ module Spec
|
|
249
249
|
story_runner.run_stories
|
250
250
|
|
251
251
|
# then
|
252
|
-
|
252
|
+
scenario.name.should == 'first scenario'
|
253
253
|
end
|
254
254
|
|
255
255
|
it "should clean the steps between stories" do
|
@@ -347,10 +347,10 @@ module Spec
|
|
347
347
|
|
348
348
|
it 'should suppress listeners while it runs a GivenScenario' do
|
349
349
|
# given
|
350
|
-
|
350
|
+
scenario_ran = false
|
351
351
|
|
352
352
|
scenario = ScenarioBuilder.new.name('a scenario').to_scenario do
|
353
|
-
|
353
|
+
scenario_ran = true
|
354
354
|
Given 'given' do end
|
355
355
|
When 'event' do end
|
356
356
|
Then 'outcome' do end
|
@@ -374,16 +374,16 @@ module Spec
|
|
374
374
|
world.GivenScenario 'a scenario'
|
375
375
|
|
376
376
|
# then
|
377
|
-
|
377
|
+
scenario_ran.should be_true
|
378
378
|
end
|
379
379
|
|
380
380
|
it 'should interpret GivenScenario... And... as multiple givens' do
|
381
381
|
# given
|
382
382
|
world = World.create
|
383
|
-
|
383
|
+
steps = []
|
384
384
|
|
385
385
|
scenario = ScenarioBuilder.new.name('a scenario').to_scenario do
|
386
|
-
|
386
|
+
steps << 1
|
387
387
|
end
|
388
388
|
Runner::StoryRunner.should_receive(:scenario_from_current_story).
|
389
389
|
with('a scenario').and_return(scenario)
|
@@ -392,12 +392,12 @@ module Spec
|
|
392
392
|
world.instance_eval do
|
393
393
|
GivenScenario 'a scenario'
|
394
394
|
And 'step 2' do
|
395
|
-
|
395
|
+
steps << 2
|
396
396
|
end
|
397
397
|
end
|
398
398
|
|
399
399
|
# then
|
400
|
-
|
400
|
+
steps.should == [1,2]
|
401
401
|
World.step_mother.find(:given, 'step 2').should_not be_nil
|
402
402
|
end
|
403
403
|
|
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.
|
4
|
+
version: 1.1.6
|
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-
|
12
|
+
date: 2008-10-02 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -249,15 +249,14 @@ files:
|
|
249
249
|
- rake_tasks/verify_rcov.rake
|
250
250
|
- rspec.gemspec
|
251
251
|
- spec/README.jruby
|
252
|
+
- spec/autotest/autotest_helper.rb
|
253
|
+
- spec/autotest/autotest_matchers.rb
|
252
254
|
- spec/autotest/discover_spec.rb
|
253
255
|
- spec/autotest/rspec_spec.rb
|
254
|
-
- spec/autotest_helper.rb
|
255
|
-
- spec/autotest_matchers.rb
|
256
256
|
- spec/rspec_suite.rb
|
257
257
|
- spec/ruby_forker.rb
|
258
258
|
- spec/spec.opts
|
259
259
|
- spec/spec/adapters/ruby_engine_spec.rb
|
260
|
-
- spec/spec/example/base_formatter_spec.rb
|
261
260
|
- spec/spec/example/configuration_spec.rb
|
262
261
|
- spec/spec/example/example_group/described_module_spec.rb
|
263
262
|
- spec/spec/example/example_group/warning_messages_spec.rb
|
@@ -345,6 +344,7 @@ files:
|
|
345
344
|
- spec/spec/runner/empty_file.txt
|
346
345
|
- spec/spec/runner/examples.txt
|
347
346
|
- spec/spec/runner/failed.txt
|
347
|
+
- spec/spec/runner/formatter/base_formatter_spec.rb
|
348
348
|
- spec/spec/runner/formatter/failing_example_groups_formatter_spec.rb
|
349
349
|
- spec/spec/runner/formatter/failing_examples_formatter_spec.rb
|
350
350
|
- spec/spec/runner/formatter/html_formatted-1.8.4.html
|
@@ -469,9 +469,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
469
469
|
requirements: []
|
470
470
|
|
471
471
|
rubyforge_project: rspec
|
472
|
-
rubygems_version: 1.
|
472
|
+
rubygems_version: 1.3.0
|
473
473
|
signing_key:
|
474
474
|
specification_version: 2
|
475
|
-
summary: rspec
|
475
|
+
summary: rspec 1.1.6
|
476
476
|
test_files: []
|
477
477
|
|