Class: Lotus::Generators::TestFramework
- Inherits:
-
Object
- Object
- Lotus::Generators::TestFramework
- Defined in:
- lib/lotus/generators/test_framework.rb
Overview
Constant Summary collapse
Instance Attribute Summary collapse
- #framework ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(lotusrc, framework) ⇒ TestFramework
constructor
A new instance of TestFramework.
- #minitest? ⇒ Boolean
- #rspec? ⇒ Boolean
Constructor Details
#initialize(lotusrc, framework) ⇒ TestFramework
Returns a new instance of TestFramework.
11 12 13 14 |
# File 'lib/lotus/generators/test_framework.rb', line 11 def initialize(lotusrc, framework) @framework = (framework || lotusrc..fetch(:test)) assert_framework! end |
Instance Attribute Details
#framework ⇒ Object (readonly)
9 10 11 |
# File 'lib/lotus/generators/test_framework.rb', line 9 def framework @framework end |