Class: Everqueen::Test
- Inherits:
-
Object
- Object
- Everqueen::Test
- Defined in:
- lib/everqueen/test.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
(also: #asset_path)
readonly
Returns the value of attribute name.
-
#suite ⇒ Object
readonly
Returns the value of attribute suite.
Instance Method Summary collapse
- #exist? ⇒ Boolean
- #failure_messages ⇒ Object
- #full_path ⇒ Object
-
#initialize(suite, name) ⇒ Test
constructor
A new instance of Test.
- #passed? ⇒ Boolean
- #root ⇒ Object
- #url ⇒ Object
Constructor Details
#initialize(suite, name) ⇒ Test
Returns a new instance of Test.
7 8 9 10 |
# File 'lib/everqueen/test.rb', line 7 def initialize(suite, name) @suite = suite @name = name.sub('js.coffee.erb', 'js').sub('js.coffee', 'js').sub('js.erb', 'js') end |
Instance Attribute Details
#name ⇒ Object (readonly) Also known as: asset_path
Returns the value of attribute name.
5 6 7 |
# File 'lib/everqueen/test.rb', line 5 def name @name end |
#suite ⇒ Object (readonly)
Returns the value of attribute suite.
5 6 7 |
# File 'lib/everqueen/test.rb', line 5 def suite @suite end |
Instance Method Details
#exist? ⇒ Boolean
34 35 36 |
# File 'lib/everqueen/test.rb', line 34 def exist? File.exist?(full_path) end |
#failure_messages ⇒ Object
30 31 32 |
# File 'lib/everqueen/test.rb', line 30 def runner. end |
#full_path ⇒ Object
16 17 18 |
# File 'lib/everqueen/test.rb', line 16 def full_path File.join(root, Everqueen.test_dir, name) end |
#passed? ⇒ Boolean
26 27 28 |
# File 'lib/everqueen/test.rb', line 26 def passed? runner.passed? end |
#root ⇒ Object
12 13 14 |
# File 'lib/everqueen/test.rb', line 12 def root suite.root end |
#url ⇒ Object
22 23 24 |
# File 'lib/everqueen/test.rb', line 22 def url "#{suite.mounted_at}/run/#{name}" end |