repo.or.cz
/
rbx.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Updated MSpec source to a54f23d0.
[rbx.git]
/
spec
/
frozen
/
1.8
/
language
/
regexp_spec.rb
blob
2ea3e8c846cb428469ec8a34db4ef92d9ead3901
1
require File.dirname(__FILE__) + '/../spec_helper'
2
3
describe "Literal Regexps" do
4
it "matches against $_ (last input) in a conditional if no explicit matchee provided" do
5
$_ = nil
6
7
(true if /foo/).should_not == true
8
9
$_ = "foo"
10
11
(true if /foo/).should == true
12
end
13
end