Sha256: ccae0cce68ef6dcf5d3c0bb2220300c432233527c8470b80d421ddf791f2aaf0

Contents?: true

Size: 262 Bytes

Versions: 16

Compression:

Stored size: 262 Bytes

Contents

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

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
orange-0.1.8 spec/orange-core/mock/mock_resource.rb
orange-0.1.7 spec/orange-core/mock/mock_resource.rb
orange-0.1.4 spec/orange-core/mock/mock_resource.rb
orange-0.1.2 spec/orange-core/mock/mock_resource.rb
orange-0.1.0 spec/orange-core/mock/mock_resource.rb
orange-0.0.15 spec/orange-core/mock/mock_resource.rb
orange-0.0.14 spec/orange-core/mock/mock_resource.rb
orange-0.0.13 spec/orange/mock/mock_resource.rb
orange-0.0.12 spec/orange/mock/mock_resource.rb
orange-0.0.10 spec/orange/mock/mock_resource.rb
orange-0.0.8 spec/orange/mock/mock_resource.rb
orange-0.0.7 spec/orange/mock/mock_resource.rb
orange-0.0.6 spec/orange/mock/mock_resource.rb
orange-0.0.5 spec/orange/mock/mock_resource.rb
orange-0.0.4 spec/orange/mock/mock_resource.rb
orange-0.0.3 spec/mock/mock_resource.rb