This file contains hidden or 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
Rails 3.0.pre (git) | |
Loaded suite DepotTest | |
Started | |
................F..F......EE................ | |
Finished in 3.577538 seconds. | |
1) Failure: | |
test_21.2_Routing_Requests(DepotTest) | |
[/Users/carlhuda/Developer/Source/awdwr/checkdepot.rb:988 | |
/Users/carlhuda/.rvm/gems/ruby/1.8.7/gems/gorp-0.9.0/lib/gorp/test.rb:48:in `instance_eval' |
This file contains hidden or 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
catch(:EXISTS) do | |
@jobs.each_index do |i| | |
if @jobs[i] and (@jobs[i][0] == key || | |
@jobs[i][1] == key || | |
@jobs[i][1].context.main.equal?(key)) | |
@jobs[i] = nil | |
throw :EXISTS | |
end | |
end | |
IRB.fail NoSuchJob, key |
This file contains hidden or 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
#foo {font-size: 10em} | |
#foo .bar {color: green} | |
#foo .bop {color: blue} |
This file contains hidden or 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
#foo | |
.bar .baz | |
#bang {color: blue} |
This file contains hidden or 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
def irb_load(fn, priv = nil) | |
path = search_file_from_ruby_path(fn) | |
raise LoadError, "No such file to load -- #{fn}" unless path | |
load_file(path, priv) | |
end | |
def search_file_from_ruby_path(fn) | |
if /^#{Regexp.quote(File::Separator)}/ =~ fn | |
return fn if File.exist?(fn) |
NewerOlder