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-0.5.2 spec/orange-core/mock/mock_resource.rb
orange-0.5.1 spec/orange-core/mock/mock_resource.rb
orange-0.4.0 spec/orange-core/mock/mock_resource.rb
orange-0.3.9 spec/orange-core/mock/mock_resource.rb
orange-0.3.8 spec/orange-core/mock/mock_resource.rb
orange-0.3.7 spec/orange-core/mock/mock_resource.rb
orange-0.3.6 spec/orange-core/mock/mock_resource.rb
orange-0.3.5 spec/orange-core/mock/mock_resource.rb
orange-0.3.4 spec/orange-core/mock/mock_resource.rb
orange-0.3.3 spec/orange-core/mock/mock_resource.rb
orange-0.3.2 spec/orange-core/mock/mock_resource.rb
orange-0.3.1 spec/orange-core/mock/mock_resource.rb
orange-0.3.0 spec/orange-core/mock/mock_resource.rb
orange-0.2.11 spec/orange-core/mock/mock_resource.rb
orange-0.2.9 spec/orange-core/mock/mock_resource.rb
orange-0.2.8 spec/orange-core/mock/mock_resource.rb
orange-0.2.7 spec/orange-core/mock/mock_resource.rb
orange-0.2.6 spec/orange-core/mock/mock_resource.rb
orange-0.2.5 spec/orange-core/mock/mock_resource.rb
orange-0.2.4 spec/orange-core/mock/mock_resource.rb