Class: Transpec::Syntax::ExampleGroup::NonMonkeyPatchDescribeRecord
- Inherits:
-
Record
- Object
- Record
- Transpec::Syntax::ExampleGroup::NonMonkeyPatchDescribeRecord
- Defined in:
- lib/transpec/syntax/example_group.rb
Constant Summary
Constants inherited from Record
Record::OVERRIDE_FORBIDDEN_METHODS
Instance Attribute Summary collapse
-
#example_group ⇒ Object
readonly
Returns the value of attribute example_group.
Attributes inherited from Record
#annotation, #converted_syntax_type, #original_syntax_type
Instance Method Summary collapse
- #base_syntax ⇒ Object
- #build_converted_syntax ⇒ Object
- #build_original_syntax ⇒ Object
-
#initialize(example_group) ⇒ NonMonkeyPatchDescribeRecord
constructor
A new instance of NonMonkeyPatchDescribeRecord.
Methods inherited from Record
#==, #converted_syntax, #hash, method_added, #original_syntax, #to_s
Constructor Details
#initialize(example_group) ⇒ NonMonkeyPatchDescribeRecord
Returns a new instance of NonMonkeyPatchDescribeRecord.
102 103 104 |
# File 'lib/transpec/syntax/example_group.rb', line 102 def initialize(example_group) @example_group = example_group end |
Instance Attribute Details
#example_group ⇒ Object (readonly)
Returns the value of attribute example_group.
100 101 102 |
# File 'lib/transpec/syntax/example_group.rb', line 100 def example_group @example_group end |
Instance Method Details
#base_syntax ⇒ Object
114 115 116 |
# File 'lib/transpec/syntax/example_group.rb', line 114 def base_syntax "#{example_group.method_name} 'something' { }" end |
#build_converted_syntax ⇒ Object
110 111 112 |
# File 'lib/transpec/syntax/example_group.rb', line 110 def build_converted_syntax "RSpec.#{base_syntax}" end |
#build_original_syntax ⇒ Object
106 107 108 |
# File 'lib/transpec/syntax/example_group.rb', line 106 def build_original_syntax base_syntax end |