Class: TestCase
- Inherits:
-
Object
- Object
- TestCase
- Defined in:
- lib/sfb_scripts/test_running/test_case.rb
Constant Summary collapse
- TestDirectoryError =
Class.new(StandardError)
Instance Attribute Summary collapse
-
#full_path ⇒ Object
readonly
Returns the value of attribute full_path.
-
#relative_path ⇒ Object
readonly
Returns the value of attribute relative_path.
-
#test_name ⇒ Object
readonly
Returns the value of attribute test_name.
-
#working_dir ⇒ Object
readonly
Returns the value of attribute working_dir.
Instance Method Summary collapse
-
#initialize(full_path: raise, test_name: '') ⇒ TestCase
constructor
A new instance of TestCase.
- #raise_file_path_error ⇒ Object
Constructor Details
#initialize(full_path: raise, test_name: '') ⇒ TestCase
Returns a new instance of TestCase.
6 7 8 9 |
# File 'lib/sfb_scripts/test_running/test_case.rb', line 6 def initialize(full_path: raise, test_name: '') @test_name = test_name @full_path = full_path end |
Instance Attribute Details
#full_path ⇒ Object (readonly)
Returns the value of attribute full_path.
4 5 6 |
# File 'lib/sfb_scripts/test_running/test_case.rb', line 4 def full_path @full_path end |
#relative_path ⇒ Object (readonly)
Returns the value of attribute relative_path.
4 5 6 |
# File 'lib/sfb_scripts/test_running/test_case.rb', line 4 def relative_path @relative_path end |
#test_name ⇒ Object (readonly)
Returns the value of attribute test_name.
4 5 6 |
# File 'lib/sfb_scripts/test_running/test_case.rb', line 4 def test_name @test_name end |
#working_dir ⇒ Object (readonly)
Returns the value of attribute working_dir.
4 5 6 |
# File 'lib/sfb_scripts/test_running/test_case.rb', line 4 def working_dir @working_dir end |
Instance Method Details
#raise_file_path_error ⇒ Object
24 25 26 |
# File 'lib/sfb_scripts/test_running/test_case.rb', line 24 def raise_file_path_error raise TestDirectoryError.new("Can't find test's relative path") end |