Module: NRSER::RSpex

Defined in:
lib/nrser/rspex.rb,
lib/nrser/rspex/example.rb,
lib/nrser/rspex/example_group.rb,
lib/nrser/rspex/shared_examples.rb

Overview

Declarations

Defined Under Namespace

Modules: Example, ExampleGroup, Format, SharedExamples Classes: Args, List, Opts

Constant Summary collapse

PREFIXES =

Symbol characters for specific example group types.

Sources:

{
  section: 'ยง',
  group: 'โ€ข',
  invocation: '๐‘“โŸฎ๐‘ฅโŸฏ',
}

Class Method Summary collapse

Class Method Details

.dot_rel_path(dest) ⇒ String

Get the relative path from the working directory with the โ€˜./` in front.

Parameters:

Returns:



169
170
171
# File 'lib/nrser/rspex.rb', line 169

def self.dot_rel_path dest
  File.join '.', dest.to_pn.relative_path_from( Pathname.getwd )
end

.format(*args) ⇒ Object



157
158
159
# File 'lib/nrser/rspex.rb', line 157

def self.format *args
  NRSER::RSpex::Format.description *args
end

.short_s(value, max = 64) ⇒ Object



152
153
154
# File 'lib/nrser/rspex.rb', line 152

def self.short_s value, max = 64
  NRSER.smart_ellipsis value.inspect, max
end