Sha256: 0188740fe672e326faff900f0b63b3e44a321ecc785713342555e2630be303c2
Contents?: true
Size: 821 Bytes
Versions: 2
Compression:
Stored size: 821 Bytes
Contents
require 'spec_helper' describe Mutant::Mutatee do describe '#rbx_method' do setup_thing do def self.bar; end def bar; end end context 'given an implementation for a singleton method' do let(:implementation) { Mutant::Implementation.new('Thing.bar') } let(:mutatee) { Mutant::Mutatee.new(implementation) } it 'returns a SingletonMethod' do mutatee.rbx_method.should be_an_instance_of(Mutant::SingletonMethod) end end context 'given an implementation for an instance method' do let(:implementation) { Mutant::Implementation.new('Thing#bar') } let(:mutatee) { Mutant::Mutatee.new(implementation) } it 'returns an InstanceMethod' do mutatee.rbx_method.should be_an_instance_of(Mutant::InstanceMethod) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mutant-0.1.1 | spec/mutant/mutatee_spec.rb |
mutant-0.1.0 | spec/mutant/mutatee_spec.rb |