rspec-core 2.0.0.a2 → 2.0.0.a3
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +2 -2
- data/.gitignore +1 -0
- data/README.markdown +18 -4
- data/Rakefile +6 -17
- data/bin/rspec +0 -8
- data/example_specs/failing/README.txt +1 -1
- data/example_specs/failing/spec_helper.rb +7 -2
- data/example_specs/failing/team_spec.rb +0 -1
- data/features/before_and_after_blocks/around.feature +2 -0
- data/features/command_line/example_name_option.feature +54 -0
- data/features/command_line/line_number_appended_to_path.feature +39 -0
- data/features/command_line/line_number_option.feature +40 -0
- data/features/matchers/define_matcher.feature +18 -4
- data/features/matchers/define_matcher_outside_rspec.feature +1 -2
- data/features/mocks/mix_stubs_and_mocks.feature +2 -0
- data/features/subject/explicit_subject.feature +4 -0
- data/features/subject/implicit_subject.feature +4 -0
- data/features/support/env.rb +15 -1
- data/lib/rspec/core.rb +1 -1
- data/lib/rspec/core/command_line_options.rb +9 -0
- data/lib/rspec/core/configuration.rb +18 -8
- data/lib/rspec/core/example.rb +14 -23
- data/lib/rspec/core/example_group.rb +39 -30
- data/lib/rspec/core/formatters/base_formatter.rb +9 -7
- data/lib/rspec/core/formatters/base_text_formatter.rb +2 -2
- data/lib/rspec/core/formatters/documentation_formatter.rb +10 -12
- data/lib/rspec/core/kernel_extensions.rb +2 -2
- data/lib/rspec/core/load_path.rb +1 -2
- data/lib/rspec/core/metadata.rb +65 -27
- data/lib/rspec/core/ruby_project.rb +24 -10
- data/lib/rspec/core/runner.rb +3 -3
- data/lib/rspec/core/{shared_behaviour.rb → shared_example_group.rb} +5 -5
- data/lib/rspec/core/{shared_behaviour_kernel_extensions.rb → shared_example_group_kernel_extensions.rb} +3 -3
- data/lib/rspec/core/version.rb +1 -1
- data/lib/rspec/core/world.rb +29 -50
- data/rspec-core.gemspec +22 -21
- data/spec/rspec/core/command_line_options_spec.rb +14 -0
- data/spec/rspec/core/configuration_spec.rb +51 -13
- data/spec/rspec/core/example_group_spec.rb +61 -68
- data/spec/rspec/core/example_group_subject_spec.rb +1 -1
- data/spec/rspec/core/example_spec.rb +19 -8
- data/spec/rspec/core/formatters/base_formatter_spec.rb +2 -2
- data/spec/rspec/core/metadata_spec.rb +52 -17
- data/spec/rspec/core/mocha_spec.rb +4 -4
- data/spec/rspec/core/pending_example_spec.rb +19 -0
- data/spec/rspec/core/ruby_project_spec.rb +24 -0
- data/spec/rspec/core/{shared_behaviour_spec.rb → shared_example_group_spec.rb} +31 -31
- data/spec/rspec/core/world_spec.rb +64 -83
- data/spec/spec_helper.rb +19 -30
- metadata +17 -17
- data/features-pending/command_line/line_number_option.feature +0 -56
- data/features-pending/command_line/line_number_option_with_example_with_no_name.feature +0 -22
- data/lib/rspec/core/extensions/instance_exec.rb +0 -31
- data/spec/resources/example_classes.rb +0 -67
- data/spec/rspec/core/resources/example_classes.rb +0 -67
@@ -2,10 +2,10 @@ module Rspec
|
|
2
2
|
module Core
|
3
3
|
module KernelExtensions
|
4
4
|
|
5
|
-
def describe(*args, &
|
5
|
+
def describe(*args, &example_group_block)
|
6
6
|
args << {} unless args.last.is_a?(Hash)
|
7
7
|
args.last.update :caller => caller(1)
|
8
|
-
Rspec::Core::ExampleGroup.describe(*args, &
|
8
|
+
Rspec::Core::ExampleGroup.describe(*args, &example_group_block)
|
9
9
|
end
|
10
10
|
|
11
11
|
alias :context :describe
|
data/lib/rspec/core/load_path.rb
CHANGED
data/lib/rspec/core/metadata.rb
CHANGED
@@ -13,63 +13,101 @@ module Rspec
|
|
13
13
|
def initialize(superclass_metadata=nil)
|
14
14
|
@superclass_metadata = superclass_metadata
|
15
15
|
update(@superclass_metadata) if @superclass_metadata
|
16
|
-
store(:
|
16
|
+
store(:example_group, {})
|
17
|
+
store(:behaviour, self[:example_group])
|
17
18
|
yield self if block_given?
|
18
19
|
end
|
19
20
|
|
20
21
|
def process(*args)
|
21
22
|
extra_metadata = args.last.is_a?(Hash) ? args.pop : {}
|
22
|
-
extra_metadata.delete(:
|
23
|
+
extra_metadata.delete(:example_group) # Remove it when present to prevent it clobbering the one we setup
|
24
|
+
extra_metadata.delete(:behaviour) # Remove it when present to prevent it clobbering the one we setup
|
23
25
|
|
24
|
-
self[:
|
25
|
-
self[:
|
26
|
-
self[:
|
26
|
+
self[:example_group][:describes] = args.shift unless args.first.is_a?(String)
|
27
|
+
self[:example_group][:describes] ||= self.superclass_metadata && self.superclass_metadata[:example_group][:describes]
|
28
|
+
self[:example_group][:description] = args.shift || ''
|
27
29
|
|
28
|
-
self[:
|
29
|
-
self[:
|
30
|
-
self[:
|
31
|
-
self[:
|
32
|
-
self[:
|
30
|
+
self[:example_group][:name] = determine_name
|
31
|
+
self[:example_group][:block] = extra_metadata.delete(:example_group_block)
|
32
|
+
self[:example_group][:caller] = extra_metadata.delete(:caller)
|
33
|
+
self[:example_group][:file_path] = file_path_from(self[:example_group], extra_metadata.delete(:file_path))
|
34
|
+
self[:example_group][:line_number] = line_number_from(self[:example_group], extra_metadata.delete(:line_number))
|
35
|
+
self[:example_group][:location] = location_from(self[:example_group])
|
33
36
|
|
34
37
|
update(extra_metadata)
|
35
38
|
end
|
36
39
|
|
37
|
-
def for_example(
|
38
|
-
dup.configure_for_example(
|
40
|
+
def for_example(description, options)
|
41
|
+
dup.configure_for_example(description,options)
|
39
42
|
end
|
40
43
|
|
41
|
-
def configure_for_example(
|
42
|
-
store(:description,
|
44
|
+
def configure_for_example(description, options)
|
45
|
+
store(:description, description.to_s)
|
46
|
+
store(:full_description, "#{self[:example_group][:name]} #{self[:description]}")
|
43
47
|
store(:execution_result, {})
|
44
48
|
store(:caller, options.delete(:caller))
|
45
49
|
if self[:caller]
|
46
|
-
store(:file_path,
|
47
|
-
store(:line_number,
|
50
|
+
store(:file_path, file_path_from(self))
|
51
|
+
store(:line_number, line_number_from(self))
|
48
52
|
end
|
53
|
+
self[:location] = location_from(self)
|
49
54
|
update(options)
|
55
|
+
self
|
56
|
+
end
|
57
|
+
|
58
|
+
def apply_condition(filter_on, filter, metadata=nil)
|
59
|
+
metadata ||= self
|
60
|
+
case filter
|
61
|
+
when Hash
|
62
|
+
filter.all? { |k, v| apply_condition(k, v, metadata[filter_on]) }
|
63
|
+
when Regexp
|
64
|
+
metadata[filter_on] =~ filter
|
65
|
+
when Proc
|
66
|
+
filter.call(metadata[filter_on]) rescue false
|
67
|
+
when Fixnum
|
68
|
+
if filter_on == :line_number
|
69
|
+
[metadata[:line_number],metadata[:example_group][:line_number]].include?(filter)
|
70
|
+
else
|
71
|
+
metadata[filter_on] == filter
|
72
|
+
end
|
73
|
+
else
|
74
|
+
metadata[filter_on] == filter
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
def all_apply?(filters)
|
79
|
+
filters.all? do |filter_on, filter|
|
80
|
+
apply_condition(filter_on, filter)
|
81
|
+
end
|
50
82
|
end
|
51
83
|
|
52
84
|
private
|
53
85
|
|
54
|
-
def
|
55
|
-
|
86
|
+
def file_path_from(metadata, given_file_path=nil)
|
87
|
+
given_file_path || file_and_line_number(metadata)[0].strip
|
88
|
+
end
|
89
|
+
|
90
|
+
def line_number_from(metadata, given_line_number=nil)
|
91
|
+
given_line_number || file_and_line_number(metadata)[1].to_i
|
92
|
+
end
|
93
|
+
|
94
|
+
def location_from(metadata)
|
95
|
+
"#{metadata[:file_path]}:#{metadata[:line_number]}"
|
56
96
|
end
|
57
97
|
|
58
|
-
def
|
59
|
-
|
60
|
-
possible_files.first.split(':').first.strip
|
98
|
+
def file_and_line_number(metadata)
|
99
|
+
candidate_entries_from_caller(metadata).first.split(':')
|
61
100
|
end
|
62
101
|
|
63
|
-
def
|
64
|
-
|
65
|
-
possible_files.first.split(':')[1].to_i
|
102
|
+
def candidate_entries_from_caller(metadata)
|
103
|
+
metadata[:caller].grep(/\_spec\.rb:/i)
|
66
104
|
end
|
67
105
|
|
68
106
|
def determine_name
|
69
|
-
if superclass_metadata && superclass_metadata[:
|
70
|
-
self[:
|
107
|
+
if superclass_metadata && superclass_metadata[:example_group][:name]
|
108
|
+
self[:example_group][:name] = "#{superclass_metadata[:example_group][:name]} #{self[:example_group][:description]}".strip
|
71
109
|
else
|
72
|
-
self[:
|
110
|
+
self[:example_group][:name] = "#{self[:example_group][:describes]} #{self[:example_group][:description]}".strip
|
73
111
|
end
|
74
112
|
end
|
75
113
|
|
@@ -1,30 +1,44 @@
|
|
1
|
+
# This is borrowed (slightly modified) from Scott Taylor's
|
2
|
+
# project_path project:
|
3
|
+
# http://github.com/smtlaissezfaire/project_path
|
4
|
+
|
5
|
+
require 'pathname'
|
6
|
+
|
1
7
|
module Rspec
|
2
8
|
module Core
|
3
9
|
module RubyProject
|
4
|
-
def add_to_load_path(
|
5
|
-
dir
|
10
|
+
def add_to_load_path(*dirs)
|
11
|
+
dirs.map {|dir| add_dir_to_load_path(File.join(root, dir))}
|
12
|
+
end
|
13
|
+
|
14
|
+
def add_dir_to_load_path(dir) # :nodoc:
|
6
15
|
$LOAD_PATH.unshift(dir) unless $LOAD_PATH.include?(dir)
|
7
16
|
end
|
8
17
|
|
9
18
|
def root # :nodoc:
|
10
|
-
require 'pathname'
|
11
19
|
@project_root ||= determine_root
|
12
20
|
end
|
13
21
|
|
14
22
|
def determine_root # :nodoc:
|
15
|
-
|
16
|
-
|
17
|
-
|
23
|
+
find_first_parent_containing('spec') || '.'
|
24
|
+
end
|
25
|
+
|
26
|
+
def find_first_parent_containing(dir) # :nodoc:
|
27
|
+
ascend_until {|path| File.exists?(File.join(path, dir))}
|
28
|
+
end
|
29
|
+
|
30
|
+
def ascend_until(&block) # :nodoc:
|
18
31
|
Pathname(File.expand_path('.')).ascend do |path|
|
19
|
-
if
|
20
|
-
return path
|
21
|
-
end
|
32
|
+
return path if block.call(path)
|
22
33
|
end
|
23
34
|
end
|
24
35
|
|
25
36
|
module_function :add_to_load_path
|
37
|
+
module_function :add_dir_to_load_path
|
26
38
|
module_function :root
|
27
39
|
module_function :determine_root
|
40
|
+
module_function :find_first_parent_containing
|
41
|
+
module_function :ascend_until
|
28
42
|
end
|
29
43
|
end
|
30
|
-
end
|
44
|
+
end
|
data/lib/rspec/core/runner.rb
CHANGED
@@ -22,7 +22,7 @@ module Rspec
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def require_all_files(configuration)
|
25
|
-
configuration.files_to_run.map {|f| require f
|
25
|
+
configuration.files_to_run.map {|f| require f }
|
26
26
|
end
|
27
27
|
|
28
28
|
def run(args = [])
|
@@ -42,8 +42,8 @@ module Rspec
|
|
42
42
|
formatter.start(total_examples_to_run) # start the clock
|
43
43
|
start = Time.now
|
44
44
|
|
45
|
-
Rspec::Core.world.
|
46
|
-
suite_success &=
|
45
|
+
Rspec::Core.world.example_groups_to_run.each do |example_group|
|
46
|
+
suite_success &= example_group.run(formatter)
|
47
47
|
end
|
48
48
|
|
49
49
|
formatter.start_dump(Time.now - start)
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module Rspec
|
2
2
|
module Core
|
3
|
-
module
|
3
|
+
module SharedExampleGroup
|
4
4
|
|
5
5
|
def share_examples_for(name, &block)
|
6
6
|
ensure_shared_example_group_name_not_taken(name)
|
7
|
-
Rspec::Core.world.
|
7
|
+
Rspec::Core.world.shared_example_groups[name] = block
|
8
8
|
end
|
9
9
|
|
10
10
|
def share_as(name, &block)
|
@@ -21,7 +21,7 @@ module Rspec
|
|
21
21
|
end
|
22
22
|
|
23
23
|
shared_const = Object.const_set(name, mod)
|
24
|
-
Rspec::Core.world.
|
24
|
+
Rspec::Core.world.shared_example_groups[shared_const] = block
|
25
25
|
end
|
26
26
|
|
27
27
|
alias :shared_examples_for :share_examples_for
|
@@ -29,7 +29,7 @@ module Rspec
|
|
29
29
|
private
|
30
30
|
|
31
31
|
def ensure_shared_example_group_name_not_taken(name)
|
32
|
-
if Rspec::Core.world.
|
32
|
+
if Rspec::Core.world.shared_example_groups.has_key?(name)
|
33
33
|
raise ArgumentError.new("Shared example group '#{name}' already exists")
|
34
34
|
end
|
35
35
|
end
|
@@ -38,4 +38,4 @@ module Rspec
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
include Rspec::Core::
|
41
|
+
include Rspec::Core::SharedExampleGroup
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module Rspec
|
2
2
|
module Core
|
3
|
-
module
|
3
|
+
module SharedExampleGroupKernelExtensions
|
4
4
|
|
5
5
|
def share_examples_for(name, &block)
|
6
|
-
Rspec::Core.world.
|
6
|
+
Rspec::Core.world.shared_example_groups[name] = block
|
7
7
|
end
|
8
8
|
|
9
9
|
def share_as(name, &block)
|
@@ -21,7 +21,7 @@ module Rspec
|
|
21
21
|
end
|
22
22
|
|
23
23
|
shared_const = Object.const_set(name, mod)
|
24
|
-
Rspec::Core.world.
|
24
|
+
Rspec::Core.world.shared_example_groups[shared_const] = block
|
25
25
|
end
|
26
26
|
|
27
27
|
alias :shared_examples_for :share_examples_for
|
data/lib/rspec/core/version.rb
CHANGED
data/lib/rspec/core/world.rb
CHANGED
@@ -2,10 +2,10 @@ module Rspec
|
|
2
2
|
module Core
|
3
3
|
class World
|
4
4
|
|
5
|
-
attr_reader :
|
5
|
+
attr_reader :example_groups
|
6
6
|
|
7
7
|
def initialize
|
8
|
-
@
|
8
|
+
@example_groups = []
|
9
9
|
end
|
10
10
|
|
11
11
|
def filter
|
@@ -16,63 +16,51 @@ module Rspec
|
|
16
16
|
Rspec::Core.configuration.exclusion_filter
|
17
17
|
end
|
18
18
|
|
19
|
-
def
|
20
|
-
@
|
19
|
+
def shared_example_groups
|
20
|
+
@shared_example_groups ||= {}
|
21
21
|
end
|
22
22
|
|
23
|
-
def
|
24
|
-
return @
|
23
|
+
def example_groups_to_run
|
24
|
+
return @example_groups_to_run if @example_groups_to_run
|
25
25
|
|
26
26
|
if filter || exclusion_filter
|
27
|
-
@
|
27
|
+
@example_groups_to_run = filter_example_groups
|
28
28
|
|
29
|
-
if @
|
29
|
+
if @example_groups_to_run.size == 0 && Rspec::Core.configuration.run_all_when_everything_filtered?
|
30
30
|
Rspec::Core.configuration.puts "No examples were matched by #{filter.inspect}, running all"
|
31
|
-
# reset the behaviour list to all
|
32
|
-
@
|
33
|
-
@
|
31
|
+
# reset the behaviour list to all example groups, and add back all examples
|
32
|
+
@example_groups_to_run = @example_groups
|
33
|
+
@example_groups.each { |b| b.examples_to_run.replace(b.examples) }
|
34
34
|
else
|
35
35
|
Rspec::Core.configuration.puts "Run filtered using #{filter.inspect}"
|
36
36
|
end
|
37
37
|
else
|
38
|
-
@
|
39
|
-
@
|
38
|
+
@example_groups_to_run = @example_groups
|
39
|
+
@example_groups.each { |b| b.examples_to_run.replace(b.examples) }
|
40
40
|
end
|
41
41
|
|
42
|
-
@
|
42
|
+
@example_groups_to_run
|
43
43
|
end
|
44
44
|
|
45
45
|
def total_examples_to_run
|
46
|
-
@total_examples_to_run ||=
|
46
|
+
@total_examples_to_run ||= example_groups_to_run.inject(0) { |sum, b| sum += b.examples_to_run.size }
|
47
47
|
end
|
48
48
|
|
49
|
-
def
|
50
|
-
|
51
|
-
examples =
|
49
|
+
def filter_example_groups
|
50
|
+
example_groups.inject([]) do |list_of_example_groups, example_group|
|
51
|
+
examples = example_group.examples
|
52
52
|
examples = apply_exclusion_filters(examples, exclusion_filter) if exclusion_filter
|
53
53
|
examples = apply_inclusion_filters(examples, filter) if filter
|
54
54
|
examples.uniq!
|
55
|
-
|
55
|
+
example_group.examples_to_run.replace(examples)
|
56
56
|
if examples.empty?
|
57
|
-
|
57
|
+
list_of_example_groups << nil
|
58
58
|
else
|
59
|
-
|
59
|
+
list_of_example_groups << example_group
|
60
60
|
end
|
61
61
|
end.compact
|
62
62
|
end
|
63
63
|
|
64
|
-
def find(collection, type_of_filter=:positive, conditions={})
|
65
|
-
negative = type_of_filter != :positive
|
66
|
-
|
67
|
-
collection.select do |item|
|
68
|
-
# negative conditions.any?, positive conditions.all? ?????
|
69
|
-
result = conditions.all? do |filter_on, filter|
|
70
|
-
apply_condition(filter_on, filter, item.metadata)
|
71
|
-
end
|
72
|
-
negative ? !result : result
|
73
|
-
end
|
74
|
-
end
|
75
|
-
|
76
64
|
def apply_inclusion_filters(collection, conditions={})
|
77
65
|
find(collection, :positive, conditions)
|
78
66
|
end
|
@@ -81,24 +69,15 @@ module Rspec
|
|
81
69
|
find(collection, :negative, conditions)
|
82
70
|
end
|
83
71
|
|
84
|
-
def
|
85
|
-
|
86
|
-
|
87
|
-
case filter
|
88
|
-
when Hash
|
89
|
-
filter.all? { |k, v| apply_condition(k, v, metadata[filter_on]) }
|
90
|
-
when Regexp
|
91
|
-
metadata[filter_on] =~ filter
|
92
|
-
when Proc
|
93
|
-
filter.call(metadata[filter_on]) rescue false
|
94
|
-
else
|
95
|
-
metadata[filter_on] == filter
|
96
|
-
end
|
97
|
-
end
|
72
|
+
def find(collection, type_of_filter=:positive, conditions={})
|
73
|
+
negative = type_of_filter != :positive
|
98
74
|
|
99
|
-
|
100
|
-
|
101
|
-
|
75
|
+
collection.select do |item|
|
76
|
+
# negative conditions.any?, positive conditions.all? ?????
|
77
|
+
result = conditions.all? do |filter_on, filter|
|
78
|
+
item.metadata.apply_condition(filter_on, filter)
|
79
|
+
end
|
80
|
+
negative ? !result : result
|
102
81
|
end
|
103
82
|
end
|
104
83
|
|
data/rspec-core.gemspec
CHANGED
@@ -5,12 +5,13 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rspec-core}
|
8
|
-
s.version = "2.0.0.
|
8
|
+
s.version = "2.0.0.a3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["David Chelimsky", "Chad Humphries"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-02-03}
|
13
13
|
s.default_executable = %q{rspec}
|
14
|
+
s.description = %q{Rspec runner and example group classes}
|
14
15
|
s.email = %q{dchelimsky@gmail.com;chad.humphries@gmail.com}
|
15
16
|
s.executables = ["rspec"]
|
16
17
|
s.extra_rdoc_files = [
|
@@ -73,8 +74,6 @@ Gem::Specification.new do |s|
|
|
73
74
|
"example_specs/passing/stubbing_example.rb",
|
74
75
|
"example_specs/passing/yielding_example.rb",
|
75
76
|
"example_specs/ruby1.9.compatibility/access_to_constants_spec.rb",
|
76
|
-
"features-pending/command_line/line_number_option.feature",
|
77
|
-
"features-pending/command_line/line_number_option_with_example_with_no_name.feature",
|
78
77
|
"features-pending/example_groups/example_group_with_should_methods.feature",
|
79
78
|
"features-pending/example_groups/implicit_docstrings.feature",
|
80
79
|
"features-pending/expectations/expect_change.feature",
|
@@ -93,6 +92,9 @@ Gem::Specification.new do |s|
|
|
93
92
|
"features-pending/runner/specify_line_number.feature",
|
94
93
|
"features/before_and_after_blocks/around.feature",
|
95
94
|
"features/before_and_after_blocks/before_and_after_blocks.feature",
|
95
|
+
"features/command_line/example_name_option.feature",
|
96
|
+
"features/command_line/line_number_appended_to_path.feature",
|
97
|
+
"features/command_line/line_number_option.feature",
|
96
98
|
"features/example_groups/describe_aliases.feature",
|
97
99
|
"features/example_groups/nested_groups.feature",
|
98
100
|
"features/expectations/customized_message.feature",
|
@@ -119,7 +121,6 @@ Gem::Specification.new do |s|
|
|
119
121
|
"lib/rspec/core/example.rb",
|
120
122
|
"lib/rspec/core/example_group.rb",
|
121
123
|
"lib/rspec/core/example_group_subject.rb",
|
122
|
-
"lib/rspec/core/extensions/instance_exec.rb",
|
123
124
|
"lib/rspec/core/formatters.rb",
|
124
125
|
"lib/rspec/core/formatters/base_formatter.rb",
|
125
126
|
"lib/rspec/core/formatters/base_text_formatter.rb",
|
@@ -136,13 +137,12 @@ Gem::Specification.new do |s|
|
|
136
137
|
"lib/rspec/core/rake_task.rb",
|
137
138
|
"lib/rspec/core/ruby_project.rb",
|
138
139
|
"lib/rspec/core/runner.rb",
|
139
|
-
"lib/rspec/core/
|
140
|
-
"lib/rspec/core/
|
140
|
+
"lib/rspec/core/shared_example_group.rb",
|
141
|
+
"lib/rspec/core/shared_example_group_kernel_extensions.rb",
|
141
142
|
"lib/rspec/core/version.rb",
|
142
143
|
"lib/rspec/core/world.rb",
|
143
144
|
"rspec-core.gemspec",
|
144
145
|
"script/console",
|
145
|
-
"spec/resources/example_classes.rb",
|
146
146
|
"spec/rspec/core/command_line_options_spec.rb",
|
147
147
|
"spec/rspec/core/configuration_spec.rb",
|
148
148
|
"spec/rspec/core/example_group_spec.rb",
|
@@ -154,14 +154,15 @@ Gem::Specification.new do |s|
|
|
154
154
|
"spec/rspec/core/kernel_extensions_spec.rb",
|
155
155
|
"spec/rspec/core/metadata_spec.rb",
|
156
156
|
"spec/rspec/core/mocha_spec.rb",
|
157
|
+
"spec/rspec/core/pending_example_spec.rb",
|
157
158
|
"spec/rspec/core/resources/a_bar.rb",
|
158
159
|
"spec/rspec/core/resources/a_foo.rb",
|
159
160
|
"spec/rspec/core/resources/a_spec.rb",
|
160
161
|
"spec/rspec/core/resources/custom_example_group_runner.rb",
|
161
|
-
"spec/rspec/core/resources/example_classes.rb",
|
162
162
|
"spec/rspec/core/resources/utf8_encoded.rb",
|
163
|
+
"spec/rspec/core/ruby_project_spec.rb",
|
163
164
|
"spec/rspec/core/runner_spec.rb",
|
164
|
-
"spec/rspec/core/
|
165
|
+
"spec/rspec/core/shared_example_group_spec.rb",
|
165
166
|
"spec/rspec/core/world_spec.rb",
|
166
167
|
"spec/rspec/core_spec.rb",
|
167
168
|
"spec/ruby_forker.rb",
|
@@ -173,10 +174,9 @@ Gem::Specification.new do |s|
|
|
173
174
|
s.require_paths = ["lib"]
|
174
175
|
s.rubyforge_project = %q{rspec}
|
175
176
|
s.rubygems_version = %q{1.3.5}
|
176
|
-
s.summary = %q{
|
177
|
+
s.summary = %q{rspec-core 2.0.0.a3}
|
177
178
|
s.test_files = [
|
178
|
-
"spec/
|
179
|
-
"spec/rspec/core/command_line_options_spec.rb",
|
179
|
+
"spec/rspec/core/command_line_options_spec.rb",
|
180
180
|
"spec/rspec/core/configuration_spec.rb",
|
181
181
|
"spec/rspec/core/example_group_spec.rb",
|
182
182
|
"spec/rspec/core/example_group_subject_spec.rb",
|
@@ -187,14 +187,15 @@ Gem::Specification.new do |s|
|
|
187
187
|
"spec/rspec/core/kernel_extensions_spec.rb",
|
188
188
|
"spec/rspec/core/metadata_spec.rb",
|
189
189
|
"spec/rspec/core/mocha_spec.rb",
|
190
|
+
"spec/rspec/core/pending_example_spec.rb",
|
190
191
|
"spec/rspec/core/resources/a_bar.rb",
|
191
192
|
"spec/rspec/core/resources/a_foo.rb",
|
192
193
|
"spec/rspec/core/resources/a_spec.rb",
|
193
194
|
"spec/rspec/core/resources/custom_example_group_runner.rb",
|
194
|
-
"spec/rspec/core/resources/example_classes.rb",
|
195
195
|
"spec/rspec/core/resources/utf8_encoded.rb",
|
196
|
+
"spec/rspec/core/ruby_project_spec.rb",
|
196
197
|
"spec/rspec/core/runner_spec.rb",
|
197
|
-
"spec/rspec/core/
|
198
|
+
"spec/rspec/core/shared_example_group_spec.rb",
|
198
199
|
"spec/rspec/core/world_spec.rb",
|
199
200
|
"spec/rspec/core_spec.rb",
|
200
201
|
"spec/ruby_forker.rb",
|
@@ -206,17 +207,17 @@ Gem::Specification.new do |s|
|
|
206
207
|
s.specification_version = 3
|
207
208
|
|
208
209
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
209
|
-
s.add_development_dependency(%q<rspec-expectations>, [">= 2.0.0.
|
210
|
-
s.add_development_dependency(%q<rspec-mocks>, [">= 2.0.0.
|
210
|
+
s.add_development_dependency(%q<rspec-expectations>, [">= 2.0.0.a3"])
|
211
|
+
s.add_development_dependency(%q<rspec-mocks>, [">= 2.0.0.a3"])
|
211
212
|
s.add_development_dependency(%q<cucumber>, [">= 0.5.3"])
|
212
213
|
else
|
213
|
-
s.add_dependency(%q<rspec-expectations>, [">= 2.0.0.
|
214
|
-
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.
|
214
|
+
s.add_dependency(%q<rspec-expectations>, [">= 2.0.0.a3"])
|
215
|
+
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.a3"])
|
215
216
|
s.add_dependency(%q<cucumber>, [">= 0.5.3"])
|
216
217
|
end
|
217
218
|
else
|
218
|
-
s.add_dependency(%q<rspec-expectations>, [">= 2.0.0.
|
219
|
-
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.
|
219
|
+
s.add_dependency(%q<rspec-expectations>, [">= 2.0.0.a3"])
|
220
|
+
s.add_dependency(%q<rspec-mocks>, [">= 2.0.0.a3"])
|
220
221
|
s.add_dependency(%q<cucumber>, [">= 0.5.3"])
|
221
222
|
end
|
222
223
|
end
|