spec/controllers/rpc_controller_spec.rb in marty-8.2.0 vs spec/controllers/rpc_controller_spec.rb in marty-8.3.1
- old
+ new
@@ -1020,12 +1020,21 @@
expect(res.values[0]).to eq(expect)
end
class FruitsEnum
VALUES = Set['Apple', 'Banana', 'Orange']
+
+ def self.values
+ VALUES
+ end
end
+
class CondEnum
VALUES = Set['no opts', 'opt1', 'opt2', 'opttf']
+
+ def self.values
+ VALUES
+ end
end
it 'validates schema with a pg_enum (Positive)' do
Marty::ApiConfig.create!(script: 'M5',
node: 'A',