Sha256: c6762b61a003bd0b671cb5b7a427b44e42de2b2da027a92f48745908cf0eeba6
Contents?: true
Size: 972 Bytes
Versions: 4
Compression:
Stored size: 972 Bytes
Contents
require "test_helper" require "mimoco" class ModelsTest < Minitest::Test def test_class_methods models = {Order => {class_methods: %i[class_method]}} check_models models end def test_call_class_methods models = {Order => {call_class_methods: %i[class_method]}} check_models models end def test_public_methods models = {Order => {public_methods: %i[public_method]}} check_models models end def test_call_public_methods models = { Order => { valid: {name: "Name", qty: 123}, call_public_methods: %i[public_method] } } check_models models end def test_several models = { Order => { valid: {name: "Name", qty: 123}, invalid: {qty: :abc}, class_methods: %i[class_method], call_class_methods: %i[class_method], public_methods: %i[public_method], call_public_methods: %i[public_method] } } check_models models end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mimoco-1.0.3 | test/models/models_test.rb |
mimoco-1.0.2 | test/models/models_test.rb |
mimoco-1.0.1 | test/models/models_test.rb |
mimoco-1.0.0 | test/models/models_test.rb |