Sha256: 3b1ef00e377f69aa382675e74f23ea08f95d647174109607307403bc9acf3e08
Contents?: true
Size: 982 Bytes
Versions: 55
Compression:
Stored size: 982 Bytes
Contents
class MockModelResource < Orange::ModelResource use MockCarton end class MockModelResourceOne < Orange::ModelResource use MockCarton def index(packet, *args) raise 'I see you\'re using index' end def show(packet, *args) raise 'I see you\'re using show' end def other(packet, *args) raise 'I see you\'re using other' end def find_one(packet, mode, resource_id =false) raise 'calling find_one' end def find_list(packet, mode) raise 'calling find_list' end end class MockModelResourceTwo < Orange::ModelResource use MockCartonTwo end class MockModelResourceThree < Orange::ModelResource use MockCarton def find_extras(packet, mode) raise 'calling find_extras' end end class MockModelResourceFour < Orange::ModelResource use MockCarton def find_one(packet, mode, resource_id =false) 'mock_one' end def find_list(packet, mode) 'mock_list' end end class MockModelResourceExtreme < Orange::ModelResource end
Version data entries
55 entries across 55 versions & 3 rubygems