Skip to content

Instantly share code, notes, and snippets.

setlocal
cd c:\github\rails\activesupport
REM set RUBY_EXE=%MERLIN_ROOT%\..\External.LCA_RESTRICTED\languages\ruby\ruby-1.8.6p287\bin\ruby.exe
set RUBY_EXE=%MERLIN_ROOT%\bin\Debug\ir.exe
%RUBY_EXE% -I"c:/github/rails/activesupport/lib" -I"c:/github/rails/activesupport/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/buffered_logger_test.rb" "test/caching_test.rb" "test/callbacks_test.rb" "test/clean_backtrace_test.rb" "test/clean_logger_test.rb" "test/core_ext/array_ext_test.rb" "test/core_ext/base64_ext_test.rb" "test/core_ext/blank_test.rb" "test/core_ext/cgi_ext_test.rb" "test/core_ext/class/attribute_accessor_test.rb" "test/core_ext/class/class_inheritable_attributes_test.rb" "test/core_ext/class/delegating_attributes_test.rb" "test/core_ext/class_test.rb" "test/core_ext/date_ext_test.rb" "test/core_ext/date_time_ext_test.rb" "test/core_ext/duplicable_test.rb" "test/core_ext/duration_test.rb" "test/core_ext
Skipping memcached backed store tests. Start memcached and try again.
./test/core_ext/regexp_ext_test.rb:10: warning: Ambiguous first argument; put parentheses or even spaces
Loaded suite c:/github/ironruby/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
Started
Finished in 140.2578018 seconds.
1) Failure:
test_atomic_write_preserves_default_file_permissions(AtomicWriteTest)
[./test/core_ext/file_test.rb:54:in `test_atomic_write_preserves_default_file_permissions'
(in c:/github/rake)
RCov is not available
UNABLE TO RUN FUNCTIONAL TESTS
No Session Found (gem install session)
Loaded suite lib/rake/rake_test_loader
Started
.......................................................................E.........................F........................................................EEEF...FF..E...........................................F...........F............................................F......................................................................................
Finished in 271.9702 seconds.
1) Error:
@echo off
setlocal
REM Script to run ActiveRecord tests. This executes the same command as doing "rake", but allows customization
REM This assumes that you did "git clone git://github.com/rails/rails.git" in the c:\github folder
REM This allows easily switching between IronRuby and MRI
set USE_IRON_RUBY=1
if defined USE_IRON_RUBY (
set RUBY_EXE=%MERLIN_ROOT%\bin\Debug\ir.exe
print "Using SQL via IronRuby, activerecord-mssql-adapter\n"
require_dependency 'models/course'
require 'logger'
ActiveRecord::Base.logger = Logger.new("debug.log")
ActiveRecord::Base.configurations = {
'arunit' => {
:adapter => 'mssql',
:host => ENV['COMPUTERNAME'] + '\\SQLEXPRESS',
:database => 'activerecord_unittest',
This file has been truncated, but you can view the full file.
Using SQL via IronRuby, activerecord-sqlserver-adapter
Loaded suite c:/github/ironruby/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
Started
Finished in 3690.26 seconds.
1) Error:
test_add_column(ActiveSchemaTest):
NameError: uninitialized constant ActiveRecord::ConnectionAdapters::MysqlAdapter
c:/github/rails/activerecord/test/cases/../../lib/../../activemodel/lib/../../activesupport/lib/active_support/dependencies.rb:462:in `load_missing_constant'
diff --git a/Merlin/Main/Languages/Ruby/Ruby/Builtins/MutableString.cs b/Merlin/Main/Languages/Ruby/Ruby/Builtins/MutableString.cs
index 56ee03b..131c1f7 100644
--- a/Merlin/Main/Languages/Ruby/Ruby/Builtins/MutableString.cs
+++ b/Merlin/Main/Languages/Ruby/Ruby/Builtins/MutableString.cs
@@ -469,7 +469,11 @@ namespace IronRuby.Builtins {
/// The internal representation of the MutableString is preserved.
/// </summary>
public byte[]/*!*/ ToByteArray() {
- return _content.ToByteArray();
+ try {
diff --git a/activemodel/lib/active_model/validations_repair_helper.rb b/activemodel/lib/active_model/validations_repair_helper.rb
index 432e411..e5ddf57 100644
--- a/activemodel/lib/active_model/validations_repair_helper.rb
+++ b/activemodel/lib/active_model/validations_repair_helper.rb
@@ -29,7 +29,7 @@ module ActiveModel
@validation_repairs = Toolbox.record_validations(*model_classes)
end
teardown do
- Toolbox.reset_validations(@validation_repairs)
+ Toolbox.reset_validations(@validation_repairs) if @validation_repairs
ActiveSupport has been patched to ignore MiniTests
Using native SQLServer
* DEFERRED: For abstract behavior with different language should do a date insertion when language is german.
Undefined coerced test: AdapterTest#test_add_limit_offset_should_sanitize_sql_injection_for_limit_without_comas
Undefined coerced test: AdapterTest#test_add_limit_offset_should_sanitize_sql_injection_for_limit_with_comas
Undefined coerced test: EagerAssociationTest#test_eager_with_has_many_and_limit_and_high_offset_and_multiple_array_conditions
Undefined coerced test: EagerAssociationTest#test_eager_with_has_many_and_limit_and_high_offset_and_multiple_hash_conditions
Undefined coerced test: EagerAssociationTest#test_count_with_include
Undefined coerced test: BasicsTest#test_read_attributes_before_type_cast_on_datetime
Undefined coerced test: CalculationsTest#test_should_sum_expression
diff --git a/lib/active_record/connection_adapters/sqlserver_adapter.rb b/lib/active_record/connection_adapters/sqlserver_adapter.rb
index 23c0dfd..75efadb 100644
--- a/lib/active_record/connection_adapters/sqlserver_adapter.rb
+++ b/lib/active_record/connection_adapters/sqlserver_adapter.rb
@@ -1,4 +1,5 @@
require 'active_record/connection_adapters/abstract_adapter'
+require 'active_support/core_ext/kernel/requires'
require_library_or_gem 'dbi' unless defined?(DBI)
require 'core_ext/dbi'
require 'core_ext/active_record'