@@ -59,7 +59,7 @@ def self.define_example_method(name, extra_options={})
59
59
define_method ( name ) do |*all_args , &block |
60
60
desc , *args = *all_args
61
61
options = Metadata . build_hash_from ( args )
62
- options . update ( :pending => RSpec ::Core ::Pending ::NOT_YET_IMPLEMENTED ) unless block
62
+ options . update ( :skip => RSpec ::Core ::Pending ::NOT_YET_IMPLEMENTED ) unless block
63
63
options . update ( extra_options )
64
64
examples << RSpec ::Core ::Example . new ( self , desc , options , block )
65
65
examples . last
@@ -102,16 +102,16 @@ def self.define_example_method(name, extra_options={})
102
102
103
103
# Shortcut to define an example with :pending => true
104
104
# @see example
105
- define_example_method :pending , :pending => true
105
+ define_example_method :pending , :skip => true
106
106
# Shortcut to define an example with :pending => 'Temporarily disabled with xexample'
107
107
# @see example
108
- define_example_method :xexample , :pending => 'Temporarily disabled with xexample'
108
+ define_example_method :xexample , :skip => 'Temporarily disabled with xexample'
109
109
# Shortcut to define an example with :pending => 'Temporarily disabled with xit'
110
110
# @see example
111
- define_example_method :xit , :pending => 'Temporarily disabled with xit'
111
+ define_example_method :xit , :skip => 'Temporarily disabled with xit'
112
112
# Shortcut to define an example with :pending => 'Temporarily disabled with xspecify'
113
113
# @see example
114
- define_example_method :xspecify , :pending => 'Temporarily disabled with xspecify'
114
+ define_example_method :xspecify , :skip => 'Temporarily disabled with xspecify'
115
115
116
116
# Works like `alias_method :name, :example` with the added benefit of
117
117
# assigning default metadata to the generated example.
0 commit comments