forked from IronLanguages/main
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes File.expand_path to workaround a problem "igem i rails" was run…
…ning into. Fixes File apis to throw correct exception type Implements Kernel.abort Adds Errno::ECONNREFUSED Exception#message should call Exception#to_s Fixes paths in rbconfig.rb to work in dev environment
- Loading branch information
Shri Borde
committed
Apr 14, 2009
1 parent
5e8c6b2
commit 24ce7ba
Showing
20 changed files
with
341 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...rnal.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/file/expand_path_tags.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
fails:File.expand_path converts a pathname to an absolute pathname, Ruby-Talk:18512 | ||
fails:File.expand_path expand_path for commoms unix path give a full path | ||
fails:File.expand_path sometimes returns file system case with one argument | ||
fails:File.expand_path sometimes returns file system case with two arguments |
1 change: 0 additions & 1 deletion
1
...External.LCA_RESTRICTED/Languages/IronRuby/mspec/ironruby-tags/core/string/split_tags.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
fails:String#split with Regexp treats negative limits as no limit | ||
fails:String#split with Regexp splits between characters when regexp matches a zero-length string | ||
fails:String#split with Regexp includes all captures in the result array |
11 changes: 8 additions & 3 deletions
11
.../External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec/core/exception/message_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
require File.dirname(__FILE__) + '/../../spec_helper' | ||
|
||
describe "Exception#message" do | ||
it "returns the exception message" do | ||
[Exception.new.message, Exception.new("Ouch!").message].should == ["Exception", "Ouch!"] | ||
end | ||
before :each do | ||
@e = Exception.new("Ouch!") | ||
end | ||
|
||
it "calls to_s" do | ||
@e.should_receive(:to_s).and_return("to_s response") | ||
@e.message.should == "to_s response" | ||
end | ||
end |
19 changes: 19 additions & 0 deletions
19
Merlin/External.LCA_RESTRICTED/Languages/IronRuby/mspec/rubyspec/core/exception/to_s_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
require File.dirname(__FILE__) + '/../../spec_helper' | ||
|
||
describe "Exception#to_s" do | ||
before :each do | ||
@e = Exception.new("Ouch!") | ||
end | ||
|
||
it "returns the exception message" do | ||
@e.to_s.should == "Ouch!" | ||
end | ||
|
||
it "is the class name by default" do | ||
Exception.new.to_s.should == "Exception" | ||
end | ||
|
||
it "can return a non-String" do | ||
m = mock("message") | ||
Exception.new(m).to_s.should equal(m) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.