|
19 | 19 | author: 'Code0', |
20 | 20 | icon: 'taurus-icon', |
21 | 21 | version: '1.2.3', |
| 22 | + definition_source: 'taurus', |
22 | 23 | definition_data_types: [ |
23 | 24 | { |
24 | 25 | identifier: 'TEXT', |
|
147 | 148 | documentation: 'Module documentation', |
148 | 149 | author: 'Code0', |
149 | 150 | icon: 'taurus-icon', |
150 | | - version: '1.2.3' |
| 151 | + version: '1.2.3', |
| 152 | + definition_source: 'taurus' |
151 | 153 | ) |
152 | 154 | expect(runtime_module.names.first.content).to eq('Taurus') |
153 | 155 | expect(runtime_module.descriptions.first.content).to eq('Core module') |
|
156 | 158 | text_list = DataType.find_by!(runtime: runtime, identifier: 'TEXT_LIST') |
157 | 159 | expect(text.runtime_module).to eq(runtime_module) |
158 | 160 | expect(text_list.runtime_module).to eq(runtime_module) |
| 161 | + expect(text).to have_attributes(definition_source: 'taurus') |
| 162 | + expect(text_list).to have_attributes(definition_source: 'taurus') |
159 | 163 | expect(text_list.referenced_data_types).to contain_exactly(text) |
160 | 164 |
|
161 | 165 | runtime_flow_type = RuntimeFlowType.find_by!(runtime: runtime, identifier: 'RUNTIME_FORM') |
162 | 166 | expect(runtime_flow_type.runtime_module).to eq(runtime_module) |
| 167 | + expect(runtime_flow_type.definition_source).to eq('taurus') |
163 | 168 | expect(runtime_flow_type.runtime_flow_type_settings.first.identifier).to eq('title') |
164 | 169 | expect(runtime_flow_type.runtime_flow_type_settings.first).to have_attributes(optional: true, hidden: true) |
165 | 170 | expect(runtime_flow_type.referenced_data_types).to contain_exactly(text, text_list) |
166 | 171 |
|
167 | 172 | flow_type = FlowType.find_by!(runtime: runtime, identifier: 'FORM') |
168 | 173 | expect(flow_type.runtime_module).to eq(runtime_module) |
| 174 | + expect(flow_type.definition_source).to eq('taurus') |
169 | 175 | expect(flow_type.runtime_flow_type).to eq(runtime_flow_type) |
170 | 176 | expect(flow_type.flow_type_settings.first).to have_attributes(optional: true, hidden: true) |
171 | 177 | expect(flow_type.referenced_data_types).to contain_exactly(text, text_list) |
172 | 178 |
|
173 | 179 | runtime_function = RuntimeFunctionDefinition.find_by!(runtime: runtime, runtime_name: 'std::text::split') |
174 | 180 | expect(runtime_function.runtime_module).to eq(runtime_module) |
| 181 | + expect(runtime_function.definition_source).to eq('taurus') |
175 | 182 | expect(runtime_function.design).to eq('runtime-design') |
176 | 183 | expect(runtime_function.referenced_data_types).to contain_exactly(text, text_list) |
177 | 184 | expect(runtime_function.parameters.first.runtime_name).to eq('text') |
|
0 commit comments