Class: Capybara::Storyboard::Context

Inherits:
Data
  • Object
show all
Defined in:
lib/capybara/storyboard/context.rb

Overview

Value object passed to a policy's #call. Derivation from the RSpec example lives in TestHelper; this object only carries values.

test_file is the raw RSpec file_path string; this object never normalizes it. Canonicalization to a base-relative path is done on demand by Capybara::Storyboard.normalize_test_path (used by TargetListPolicy).

Instance Attribute Summary collapse

Instance Attribute Details

#test_class_nameObject (readonly)

Returns the value of attribute test_class_name

Returns:

  • (Object)

    the current value of test_class_name



11
12
13
# File 'lib/capybara/storyboard/context.rb', line 11

def test_class_name
  @test_class_name
end

#test_fileObject (readonly)

Returns the value of attribute test_file

Returns:

  • (Object)

    the current value of test_file



11
12
13
# File 'lib/capybara/storyboard/context.rb', line 11

def test_file
  @test_file
end

#test_method_nameObject (readonly)

Returns the value of attribute test_method_name

Returns:

  • (Object)

    the current value of test_method_name



11
12
13
# File 'lib/capybara/storyboard/context.rb', line 11

def test_method_name
  @test_method_name
end