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

Version Path
orange-more-0.7.3 spec/orange-core/mock/mock_model_resource.rb
orange-more-0.7.2 spec/orange-core/mock/mock_model_resource.rb
orange-more-0.7.1 spec/orange-core/mock/mock_model_resource.rb
orange-more-0.6.5 spec/orange-core/mock/mock_model_resource.rb
orange-more-0.6.4 spec/orange-core/mock/mock_model_resource.rb
orange-more-0.6.3 spec/orange-core/mock/mock_model_resource.rb
orange-more-0.6.2 spec/orange-core/mock/mock_model_resource.rb
orange-more-0.6.0 spec/orange-core/mock/mock_model_resource.rb
orange-core-0.6.0 spec/orange-core/mock/mock_model_resource.rb
orange-more-0.5.8 spec/orange-core/mock/mock_model_resource.rb
orange-core-0.5.9 spec/orange-core/mock/mock_model_resource.rb
orange-core-0.5.8 spec/orange-core/mock/mock_model_resource.rb
orange-more-0.5.7 spec/orange-core/mock/mock_model_resource.rb
orange-core-0.5.5 spec/orange-core/mock/mock_model_resource.rb
orange-core-0.5.3 spec/orange-core/mock/mock_model_resource.rb
orange-0.5.5 spec/orange-core/mock/mock_model_resource.rb
orange-0.5.4 spec/orange-core/mock/mock_model_resource.rb
orange-0.5.3 spec/orange-core/mock/mock_model_resource.rb
orange-0.5.2 spec/orange-core/mock/mock_model_resource.rb
orange-0.5.1 spec/orange-core/mock/mock_model_resource.rb