Sha256: 5612cebb606140872646069600ad1e7fc6ff329c1e0a2682aa3f0ca32c1fd601

Contents?: true

Size: 807 Bytes

Versions: 11

Compression:

Stored size: 807 Bytes

Contents

module Spec #:nodoc:
  module Matchers #:nodoc:
    # Overwrites to provide I18n on should and should_not.
    #
    def self.generated_description
      return nil if last_should.nil?
      verb = Remarkable.t "remarkable.core.#{last_should}", :default => last_should.to_s.gsub('_',' ')
      "#{verb} #{last_description}"
    end
  end

  module Example #:nodoc:
    module ExampleGroupMethods #:nodoc:
      # Overwrites to provide I18n on example disabled message.
      #
      def xexample(description=nil, opts={}, &block)
        disabled = Remarkable.t 'remarkable.core.example_disabled', :default => 'Example disabled'
        Kernel.warn("#{disabled}: #{description}")
      end
      alias_method :xit, :xexample
      alias_method :xspecify, :xexample
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
remarkable-3.1.7 lib/remarkable/rspec.rb
remarkable-3.1.8 lib/remarkable/rspec.rb
remarkable-3.0.10 lib/remarkable/rspec.rb
remarkable-3.0.9 lib/remarkable/rspec.rb
remarkable-3.1.3 lib/remarkable/rspec.rb
remarkable-3.1.4 lib/remarkable/rspec.rb
remarkable-3.1.1 lib/remarkable/rspec.rb
remarkable-3.1.0 lib/remarkable/rspec.rb
remarkable-3.1.2 lib/remarkable/rspec.rb
remarkable-3.1.5 lib/remarkable/rspec.rb
remarkable-3.1.6 lib/remarkable/rspec.rb