Class: Capybara::Storyboard::Context
- Inherits:
-
Data
- Object
- Data
- Capybara::Storyboard::Context
- 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
-
#test_class_name ⇒ Object
readonly
Returns the value of attribute test_class_name.
-
#test_file ⇒ Object
readonly
Returns the value of attribute test_file.
-
#test_method_name ⇒ Object
readonly
Returns the value of attribute test_method_name.
Instance Attribute Details
#test_class_name ⇒ Object (readonly)
Returns the value of attribute test_class_name
11 12 13 |
# File 'lib/capybara/storyboard/context.rb', line 11 def test_class_name @test_class_name end |
#test_file ⇒ Object (readonly)
Returns the value of attribute test_file
11 12 13 |
# File 'lib/capybara/storyboard/context.rb', line 11 def test_file @test_file end |
#test_method_name ⇒ Object (readonly)
Returns the value of attribute test_method_name
11 12 13 |
# File 'lib/capybara/storyboard/context.rb', line 11 def test_method_name @test_method_name end |