mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@cbe855c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ecf03376ec
commit
37ef87c12b
38 changed files with 185 additions and 177 deletions
|
@ -44,11 +44,11 @@ describe "Predefined global $~" do
|
|||
it "is set to contain the MatchData object of the last match if successful" do
|
||||
md = /foo/.match 'foo'
|
||||
$~.should be_kind_of(MatchData)
|
||||
$~.object_id.should == md.object_id
|
||||
$~.should equal md
|
||||
|
||||
/bar/ =~ 'bar'
|
||||
$~.should be_kind_of(MatchData)
|
||||
$~.object_id.should_not == md.object_id
|
||||
$~.should_not equal md
|
||||
end
|
||||
|
||||
it "is set to nil if the last match was unsuccessful" do
|
||||
|
@ -828,7 +828,7 @@ end
|
|||
|
||||
describe "Global variable $\"" do
|
||||
it "is an alias for $LOADED_FEATURES" do
|
||||
$".object_id.should == $LOADED_FEATURES.object_id
|
||||
$".should equal $LOADED_FEATURES
|
||||
end
|
||||
|
||||
it "is read-only" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue