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