rspec-core 2.10.1 → 2.11.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog.md +35 -2
- data/README.md +14 -13
- data/features/command_line/example_name_option.feature +15 -0
- data/features/helper_methods/modules.feature +3 -3
- data/lib/rspec/core.rb +6 -2
- data/lib/rspec/core/configuration.rb +61 -26
- data/lib/rspec/core/configuration_options.rb +5 -1
- data/lib/rspec/core/deprecation.rb +0 -15
- data/lib/rspec/core/drb_command_line.rb +3 -0
- data/lib/rspec/core/drb_options.rb +3 -1
- data/lib/rspec/core/dsl.rb +4 -2
- data/lib/rspec/core/example.rb +85 -23
- data/lib/rspec/core/example_group.rb +103 -78
- data/lib/rspec/core/hooks.rb +68 -33
- data/lib/rspec/core/let.rb +0 -1
- data/lib/rspec/core/mocking/with_mocha.rb +10 -4
- data/lib/rspec/core/option_parser.rb +3 -2
- data/lib/rspec/core/project_initializer.rb +7 -1
- data/lib/rspec/core/runner.rb +2 -2
- data/lib/rspec/core/shared_context.rb +2 -2
- data/lib/rspec/core/shared_example_group.rb +38 -14
- data/lib/rspec/core/subject.rb +67 -52
- data/lib/rspec/core/version.rb +1 -1
- data/spec/rspec/core/command_line_spec.rb +68 -126
- data/spec/rspec/core/configuration_options_spec.rb +20 -4
- data/spec/rspec/core/configuration_spec.rb +61 -21
- data/spec/rspec/core/drb_command_line_spec.rb +1 -0
- data/spec/rspec/core/drb_options_spec.rb +1 -0
- data/spec/rspec/core/dsl_spec.rb +17 -0
- data/spec/rspec/core/example_group_spec.rb +19 -11
- data/spec/rspec/core/example_spec.rb +34 -0
- data/spec/rspec/core/option_parser_spec.rb +2 -1
- data/spec/rspec/core/shared_example_group_spec.rb +9 -9
- data/spec/rspec/core/subject_spec.rb +14 -0
- data/spec/rspec/core_spec.rb +18 -8
- data/spec/spec_helper.rb +1 -2
- metadata +7 -5
data/spec/spec_helper.rb
CHANGED
@@ -68,7 +68,7 @@ Spork.prefork do
|
|
68
68
|
|
69
69
|
RSpec.configure do |c|
|
70
70
|
# structural
|
71
|
-
c.
|
71
|
+
c.alias_it_behaves_like_to 'it_has_behavior'
|
72
72
|
c.around {|example| sandboxed { example.run }}
|
73
73
|
c.include(RSpecHelpers)
|
74
74
|
c.include Aruba::Api, :example_group => {
|
@@ -79,7 +79,6 @@ Spork.prefork do
|
|
79
79
|
c.treat_symbols_as_metadata_keys_with_true_values = true
|
80
80
|
c.color = !in_editor?
|
81
81
|
c.filter_run :focus
|
82
|
-
c.filter_run :foo
|
83
82
|
c.include FakeFS::SpecHelpers, :fakefs
|
84
83
|
c.run_all_when_everything_filtered = true
|
85
84
|
c.filter_run_excluding :ruby => lambda {|version|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.11.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: exe
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-
|
14
|
+
date: 2012-07-07 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rake
|
@@ -299,6 +299,7 @@ files:
|
|
299
299
|
- spec/rspec/core/deprecations_spec.rb
|
300
300
|
- spec/rspec/core/drb_command_line_spec.rb
|
301
301
|
- spec/rspec/core/drb_options_spec.rb
|
302
|
+
- spec/rspec/core/dsl_spec.rb
|
302
303
|
- spec/rspec/core/example_group_spec.rb
|
303
304
|
- spec/rspec/core/example_spec.rb
|
304
305
|
- spec/rspec/core/filter_manager_spec.rb
|
@@ -368,7 +369,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
368
369
|
version: '0'
|
369
370
|
segments:
|
370
371
|
- 0
|
371
|
-
hash:
|
372
|
+
hash: 2822147403223549363
|
372
373
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
373
374
|
none: false
|
374
375
|
requirements:
|
@@ -377,13 +378,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
377
378
|
version: '0'
|
378
379
|
segments:
|
379
380
|
- 0
|
380
|
-
hash:
|
381
|
+
hash: 2822147403223549363
|
381
382
|
requirements: []
|
382
383
|
rubyforge_project: rspec
|
383
384
|
rubygems_version: 1.8.24
|
384
385
|
signing_key:
|
385
386
|
specification_version: 3
|
386
|
-
summary: rspec-core-2.
|
387
|
+
summary: rspec-core-2.11.0
|
387
388
|
test_files:
|
388
389
|
- features/Autotest.md
|
389
390
|
- features/README.md
|
@@ -448,6 +449,7 @@ test_files:
|
|
448
449
|
- spec/rspec/core/deprecations_spec.rb
|
449
450
|
- spec/rspec/core/drb_command_line_spec.rb
|
450
451
|
- spec/rspec/core/drb_options_spec.rb
|
452
|
+
- spec/rspec/core/dsl_spec.rb
|
451
453
|
- spec/rspec/core/example_group_spec.rb
|
452
454
|
- spec/rspec/core/example_spec.rb
|
453
455
|
- spec/rspec/core/filter_manager_spec.rb
|