summaryrefslogtreecommitdiff
path: root/spec/ruby/library/getoptlong/ordering_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/getoptlong/ordering_spec.rb')
-rw-r--r--spec/ruby/library/getoptlong/ordering_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/getoptlong/ordering_spec.rb b/spec/ruby/library/getoptlong/ordering_spec.rb
index e6b645018d..695d1cafa7 100644
--- a/spec/ruby/library/getoptlong/ordering_spec.rb
+++ b/spec/ruby/library/getoptlong/ordering_spec.rb
@@ -9,7 +9,7 @@ describe "GetoptLong#ordering=" do
opts.quiet = true
opts.get
- lambda {
+ -> {
opts.ordering = GetoptLong::PERMUTE
}.should raise_error(ArgumentError)
end
@@ -18,7 +18,7 @@ describe "GetoptLong#ordering=" do
it "raises an ArgumentError if given an invalid value" do
opts = GetoptLong.new
- lambda {
+ -> {
opts.ordering = 12345
}.should raise_error(ArgumentError)
end