Class: Mutiny::Integration::RSpec::Test

Inherits:
Tests::Test show all
Defined in:
lib/mutiny/integration/rspec/test.rb

Instance Attribute Summary collapse

Attributes inherited from Tests::Test

#expression, #location

Instance Method Summary collapse

Constructor Details

#initialize(example:, **rest) ⇒ Test

Returns a new instance of Test.



9
10
11
12
13
# File 'lib/mutiny/integration/rspec/test.rb', line 9

def initialize(example:, **rest)
  super(rest)
  @example = example
  @rest = rest
end

Instance Attribute Details

#exampleObject (readonly)

Returns the value of attribute example.



7
8
9
# File 'lib/mutiny/integration/rspec/test.rb', line 7

def example
  @example
end

#restObject (readonly)

Returns the value of attribute rest.



7
8
9
# File 'lib/mutiny/integration/rspec/test.rb', line 7

def rest
  @rest
end

Instance Method Details

#generaliseObject

Converts to a Mutiny::Tests::Test, which is independent of any specific testing framework



17
18
19
# File 'lib/mutiny/integration/rspec/test.rb', line 17

def generalise
  Mutiny::Tests::Test.new(@rest)
end