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,
lib/nrser/rspex/example_group/describe_message.rb,
lib/nrser/rspex/example_group/describe_subject.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:



179
180
181
# File 'lib/nrser/rspex.rb', line 179

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

.format(*args) ⇒ Object



167
168
169
# File 'lib/nrser/rspex.rb', line 167

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

.short_s(value, max = 64) ⇒ Object



162
163
164
# File 'lib/nrser/rspex.rb', line 162

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