Sha256: 1a5c799df1468a45fbd14c6cac07728ef2a291767ed6ed4ee2a09cfe2461aa7d

Contents?: true

Size: 446 Bytes

Versions: 42

Compression:

Stored size: 446 Bytes

Contents

class MockResource < Orange::Resource
  def mock_method
    'MockResource#mock_method'
  end
  def afterLoad
    @options[:mocked] = true
  end
end

class MockResourceTwo < Orange::Resource
  def mock_method
    'MockResource#mock_method'
  end
  def afterLoad
    @options[:mocked] = true
  end
  def stack_init
    true
  end
end

class MockHamlParser < Orange::Resource
  def haml(template, packet, opts)
    [template, packet, opts]
  end
end

Version data entries

42 entries across 42 versions & 3 rubygems

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