Skip to content

Commit

Permalink
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/ruby/language/method_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
require File.expand_path('../../spec_helper', __FILE__)

describe "A method send" do
evaluate <<-ruby do
def m(a) a end
ruby

a = b = m 1
a.should == 1
b.should == 1
end

context "with a single splatted Object argument" do
before :all do
def m(a) a end

0 comments on commit 705a3d5

Please sign in to comment.