Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

Commit

Permalink
Adds spec for Object#become
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyt committed Oct 8, 2015
1 parent 69f544c commit d3e37b9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/maglev/object_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require File.expand_path '../../spec_helper', __FILE__

describe 'Object' do

describe '#become' do
it 'swaps identities of the objects' do
foo, bar = 'foo', 'bar'
foo.become bar
foo.should == 'bar'
end
end

end

0 comments on commit d3e37b9

Please sign in to comment.