Skip to content

Commit

Permalink
Added spec for a = b = m 1. Closes #3266.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Jan 24, 2015
1 parent 3fbcc3d commit 705a3d5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/ruby/language/method_spec.rb
@@ -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
Expand Down

0 comments on commit 705a3d5

Please sign in to comment.