Skip to content

Commit

Permalink
Few minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Sep 21, 2013
1 parent d7628b9 commit d57fc8a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions spec/filters/bugs/language.rb
Expand Up @@ -239,8 +239,8 @@
fails "Invoking a private getter method does not permit self as a receiver"
fails "Invoking a method with manditory and optional arguments raises an ArgumentError if too many values are passed"
fails "Invoking a method with optional arguments raises ArgumentError if extra arguments are passed"
fails "Invoking a method passes a literal hash without curly braces or parens"
fails "Invoking a method passes literal hashes without curly braces as the last parameter"
# fails "Invoking a method passes a literal hash without curly braces or parens"
# fails "Invoking a method passes literal hashes without curly braces as the last parameter"
fails "Invoking a method raises a SyntaxError with both a literal block and an object as block"
fails "Invoking a method with an object as a block uses 'to_proc' for coercion"

Expand Down
12 changes: 6 additions & 6 deletions spec/rubyspec/language/send_spec.rb
Expand Up @@ -169,15 +169,15 @@ def foobar; 200; end
end

it "passes literal hashes without curly braces as the last parameter" do
#specs.fooM3('abc', 456, 'rbx' => 'cool',
# 'specs' => 'fail sometimes', 'oh' => 'weh').should == \
# ['abc', 456, {'rbx' => 'cool', 'specs' => 'fail sometimes', 'oh' => 'weh'}]
specs.fooM3('abc', 456, 'rbx' => 'cool',
'specs' => 'fail sometimes', 'oh' => 'weh').should == \
['abc', 456, {'rbx' => 'cool', 'specs' => 'fail sometimes', 'oh' => 'weh'}]
end

it "passes a literal hash without curly braces or parens" do
#(specs.fooM3 'abc', 456, 'rbx' => 'cool',
# 'specs' => 'fail sometimes', 'oh' => 'weh').should == \
# ['abc', 456, { 'rbx' => 'cool', 'specs' => 'fail sometimes', 'oh' => 'weh'}]
(specs.fooM3 'abc', 456, 'rbx' => 'cool',
'specs' => 'fail sometimes', 'oh' => 'weh').should == \
['abc', 456, { 'rbx' => 'cool', 'specs' => 'fail sometimes', 'oh' => 'weh'}]
end

it "allows to literal hashes without curly braces as the only parameter" do
Expand Down
1 change: 1 addition & 0 deletions spec/rubyspecs
Expand Up @@ -129,6 +129,7 @@ language/redo_spec
language/rescue_spec
language/retry_spec
language/return_spec
language/send_spec
language/singleton_class_spec
language/super_spec
language/unless_spec
Expand Down

0 comments on commit d57fc8a

Please sign in to comment.