Sha256: 727f515132b3c79cd1df6b576a3284f625945c1f9ccfc22921a633bf8bde3045

Contents?: true

Size: 735 Bytes

Versions: 1

Compression:

Stored size: 735 Bytes

Contents

require 'simplecov'
SimpleCov.start do
  add_filter 'test'
end

require 'coveralls'
Coveralls.wear!

require 'minitest/autorun'
require 'casting'

BlockTestPerson = Struct.new(:name)
BlockTestPerson.send(:include, Casting::Client)
BlockTestPerson.delegate_missing_methods

class TestPerson
  def name
    'name from TestPerson'
  end

  module Greeter
    def greet
      'hello'
    end
  end

  module Verbose
    def verbose(arg1, arg2)
      [arg1, arg2].join(',')
    end
  end
end

class SubTestPerson < TestPerson
  def sub_method
    'sub'
  end
end

class Unrelated
  module More
    def unrelated
      'unrelated'
    end
  end
  include More

  def class_defined
    'oops!'
  end
end

def test_person
  TestPerson.new
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
casting-0.6.1 test/test_helper.rb