diff options
Diffstat (limited to 'spec/ruby/library/getoptlong/get_option_spec.rb')
| -rw-r--r-- | spec/ruby/library/getoptlong/get_option_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/ruby/library/getoptlong/get_option_spec.rb b/spec/ruby/library/getoptlong/get_option_spec.rb index c56903e68e..1d80e3622e 100644 --- a/spec/ruby/library/getoptlong/get_option_spec.rb +++ b/spec/ruby/library/getoptlong/get_option_spec.rb @@ -1,7 +1,8 @@ -require File.expand_path('../../../spec_helper', __FILE__) +require_relative '../../spec_helper' require 'getoptlong' -require File.expand_path('../shared/get', __FILE__) describe "GetoptLong#get_option" do - it_behaves_like(:getoptlong_get, :get_option) + it "is an alias of GetoptLong#get" do + GetoptLong.instance_method(:get_option).should == GetoptLong.instance_method(:get) + end end |
