Module: Spec::Example::ExampleGroupMethods

Defined in:
lib/remarkable/rspec.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#xexample(description = nil, opts = {}, &block) ⇒ Object Also known as: xit, xspecify

Overwrites to provide I18n on example disabled message.



16
17
18
19
# File 'lib/remarkable/rspec.rb', line 16

def xexample(description=nil, opts={}, &block)
  disabled = Remarkable.t 'remarkable.core.example_disabled', :default => 'Example disabled'
  Kernel.warn("#{disabled}: #{description}")
end