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
bigdecimal\divmod_spec.rb: ruby_bug "#206", "1.8" do #MRI's precision is very low in some cases | |
bigdecimal\remainder_spec.rb: ruby_bug "Bug #585", "1.8" do | |
cgi\cookie\value_spec.rb: ruby_bug "http://redmine.ruby-lang.org/issues/show/229", "1.8.7" do | |
cgi\htmlextension\checkbox_group_spec.rb: ruby_bug "http://redmine.ruby-lang.org/issues/show/443", "1.8.7" do | |
cgi\htmlextension\file_field_spec.rb: ruby_bug "http://redmine.ruby-lang.org/issues/show/255", "1.8.7" do | |
cgi\htmlextension\img_spec.rb: ruby_bug "http://redmine.ruby-lang.org/issues/show/255", "1.8.7" do | |
cgi\htmlextension\radio_group_spec.rb: ruby_bug "http://redmine.ruby-lang.org/issues/show/444", "1.8.7" do | |
date\constants_spec.rb: ruby_bug "#", "1.8.6" do | |
date\constants_spec.rb: ruby_bug "#", "1.8.6" do | |
date\infinity_spec.rb: ruby_bug "#", "1.8.6" do |
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
# Function to print hierarchical call trees as the program executes. | |
# Use "ir.exe -trace" for IronRuby | |
$CALL_DEPTH = 0 | |
p = proc { |op, file, line, method, b, cls| | |
if op == "call" | |
filename = file.nil? ? nil : file.gsub('\\','/') | |
puts "#{$CALL_DEPTH}\t" + ('| ' * $CALL_DEPTH) + "> #{cls}::#{method} #{filename}:#{line}" | |
locals = eval("local_variables", b) | |
local_values = locals.each { |l| |
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
require "yaml" | |
class A | |
def initialize | |
@b = B.new | |
end | |
end | |
class B | |
def to_yaml emitter |
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
$LOAD_PATH << "c:/ruby/lib/ruby/gems/1.8/gems/minitest-1.3.1/lib/minitest" | |
require "unit" | |
$LOAD_PATH << File.dirname(__FILE__) | |
$LOAD_PATH << File.dirname(__FILE__) + "/test" | |
all_test_files = Dir.glob("test/test_*.rb") | |
all_test_files.each { |f| require f } |
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 location e | |
# | |
# shri - Add this line since backtrace is sometimes nil (bug) | |
# | |
if not e.backtrace then return "" end | |
last_before_assertion = "" | |
e.backtrace.reverse_each do |s| | |
break if s =~ /in .(assert|refute|flunk|pass|fail|raise)/ |
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
describe "Widget#foo" do | |
it "does something" do | |
# This should be the functionality specs specific to the semantics of the method | |
Widget.new.foo.should == "do something" | |
end | |
end | |
# This captures the "type signature" of the method. Here are recipes for corner cases that you might forget. | |
# Note that the examples are not self-consistent by design. Only some of them might apply to any given method. | |
# However, the goal below is to include the union of all possible examples so that you can cut and paste |
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
Loaded suite runtests | |
Started | |
...................................................F.........................EEEEEEE......................................................................F...........................................................................F.........................................S.....EF................E....F.....S.......................................F.....S..........S................EE................................E............F..EE..........................................................................................................................................................................................................................................................................F....................................................... | |
Finished in 889.333000 seconds. | |
1) Failure: | |
test_self_default_dir(TestGem) [test_gem.rb:151]: | |
Expected /\/[Rr]uby\/[Gg]ems\/[0-9.]+/ to match "c:/github/ironruby/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ironruby/gems/1 |
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
require File.dirname(__FILE__) + '/../../spec_helper' | |
require File.dirname(__FILE__) + '/fixtures/classes.rb' | |
# TODO - Should be moved to /fixtures/classes.rb. Shown here just for convinience for now | |
module StringSpecs | |
def self.split(s, string_pattern, limit = nil) | |
if limit then | |
result1 = s.split(string_pattern, limit) | |
result2 = s.split(eval("/#{string_pattern}/"), limit) |
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
@setlocal | |
cd c:\rails\actionpack | |
REM set RUBY_EXE=c:\Ruby\bin\ruby.exe | |
set RUBY_EXE=c:\ironruby\Merlin\Main\bin\Debug\ir.exe -X:Interpret | |
%RUBY_EXE% -I"c:/github/rails/actionpack/lib" -I"c:/github/rails/actionpack/test" "c:/vsl/Merlin/External.LCA_RESTRICTED/languages/ruby/ruby-1.8.6p287/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake/rake_test_loader.rb" "test/controller/action_pack_assertions_test.rb" "test/controller/addresses_render_test.rb" "test/controller/assert_select_test.rb" "test/controller/base_test.rb" "test/controller/benchmark_test.rb" "test/controller/caching_test.rb" "test/controller/capture_test.rb" "test/controller/content_type_test.rb" "test/controller/cookie_test.rb" "test/controller/deprecation/deprecated_base_methods_test.rb" "test/controller/dispatcher_test.rb" "test/controller/filter_params_test.rb" "test/controller/filters_test.rb" "test/controller/flash_test.rb" "test/controller/header_test.rb" "test/controller/helper_test.rb" "test/controller/html-scanner/cdata_node_test.rb" "test/c |
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
Started | |
................................F...F..FF..F...................................................FF..FF..FF.F..FF..F..F..FFFF....FFF.F..............FFFFFFFFFFFFF.F......F.....FFF...F...........................................................F......F...........F.......................EEE..FF..FFF..FEFF..FFF.FF....E.................................................E.E.E..............................................................................................E.................................................................................EE........................................................................................................................................................................................................................................................................................E.............................F...F.F..F....................................................E...........E........F..F......F.........FFF..............F...F.F..F...FF...EE..................... |
OlderNewer