Sha256: b4c1e43cf3225adba6b6435b164b418aece29162e55f3288f35569edc35f2169

Contents?: true

Size: 636 Bytes

Versions: 1

Compression:

Stored size: 636 Bytes

Contents

class MockCarton < Orange::Carton
  def self.scaffold_properties
    @scaffold_properties
  end
  id
  admin do
    text :admin
  end
  orange do
    text :orange
  end
  front do
    text :front
  end
end

class MockCartonTwo < Orange::Carton
  id
  def self.get(id)
    'mock_get'
  end
  def self.all
    'mock_all'
  end
  def save
    raise 'mock_save'
  end
  def destroy!
    raise 'mock_destroy'
  end
  def update(*args)
    raise 'mock_update'
  end
end

class MockCartonBlank < Orange::Carton
  def self.levels
    @levels
  end
end

class MockCartonBlankTwo < Orange::Carton
end

class MockCartonForCore < Orange::Carton
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
orange-core-0.7.1 spec/orange-core/mock/mock_carton.rb