# Re: changes to extname\_spec.rb

**URL:** <https://www.ruby-forum.com/t/re-changes-to-extname-spec-rb/137600>\
**Category:** IronRuby\
**Created:** [May 14, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/re-changes-to-extname-spec-rb/137600 "2008-05-14T15:40:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ksunair](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/b19c9b/32.png) [@ksunair](https://www.ruby-forum.com/u/ksunair)\
**Post date:** [May 14, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/re-changes-to-extname-spec-rb/137600/1 "2008-05-14T15:40:57Z")

</div>

You are right, when I ran against MRI I got the “”. In my case IÂ always  
use \_why’s web page to test the results and unfortunatly the result was  
“.bashrc”, you see I trust \_why 🙂  
So if this has to match MRI, yes, then I need to change the code. Let me  
know.  
Thanks.

----- Original Message ----  
From: Alex Y. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: removed\_email\_address@domain.invalid  
Sent: Wednesday, May 14, 2008 5:43:59 AM  
Subject: Re: [Ironruby-core] changes to extname\_spec.rb

Unnikrishnan N. wrote:

> One more spec change. Could you please review line 8 of this spec, it  
> should read
> 
> Â Â File.extname(“.bashrc”).should == “.bashrc”
> 
> instead of
> 
> Â Â File.extname(“.bashrc”).should == “”  
> Quick question:Â are the specs supposed to ensure that IronRuby matches  
> MRI’s behaviour, or just that it’s internally consistent?Â I get this in  
> MRI’s IRB:

irb(main):001:0\> File.extname(“.bashrc”)  
=\> “”

Also in YARV:

irb(main):002:0\> File.extname(“.bashrc”)  
=\> “”
