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.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/ruby/library/getoptlong/ordering_spec.rb b/spec/ruby/library/getoptlong/ordering_spec.rb
index e445de2255..60ce73afaa 100644
--- a/spec/ruby/library/getoptlong/ordering_spec.rb
+++ b/spec/ruby/library/getoptlong/ordering_spec.rb
@@ -1,4 +1,4 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
require 'getoptlong'
describe "GetoptLong#ordering=" do
@@ -9,18 +9,18 @@ describe "GetoptLong#ordering=" do
opts.quiet = true
opts.get
- lambda {
+ -> {
opts.ordering = GetoptLong::PERMUTE
- }.should raise_error(ArgumentError)
+ }.should.raise(ArgumentError)
end
end
it "raises an ArgumentError if given an invalid value" do
opts = GetoptLong.new
- lambda {
+ -> {
opts.ordering = 12345
- }.should raise_error(ArgumentError)
+ }.should.raise(ArgumentError)
end
it "does not allow changing ordering to PERMUTE if ENV['POSIXLY_CORRECT'] is set" do