Class: RailsTemplater::TestingFramework
- Inherits:
-
Object
- Object
- RailsTemplater::TestingFramework
- Defined in:
- lib/rails_templater/testing_framework.rb
Constant Summary collapse
- DEFAULT =
:rspec
- SUPPORTED_TYPES =
[:rspec, :test_unit]
Instance Method Summary collapse
Instance Method Details
#type ⇒ Object
6 7 8 |
# File 'lib/rails_templater/testing_framework.rb', line 6 def type @type || DEFAULT end |
#type=(value) ⇒ Object
10 11 12 13 |
# File 'lib/rails_templater/testing_framework.rb', line 10 def type=(value) raise NotSupportedError unless SUPPORTED_TYPES.include?(value) @type ||= value end |