This file contains 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
undefined method `visit_Arel_Nodes_Casted' for #<Arel::Visitors::DepthFirst:0x7dc2a61b> | |
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/visitor.rb:29visit | |
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:12visit | |
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:63binary | |
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/visitor.rb:29visit | |
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:12visit | |
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:17unary | |
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/visitor.rb:29visit | |
vendor/bundle/jruby/2.3.0/gems/arel-6.0.3/lib/arel/visitors/depth_first.rb:12visit |
This file contains 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
module AssertCSV | |
def assert_csv(expected_csv_path, options={}, &block) | |
ignore = options[:ignore] || [] | |
actual_csv_string = CSV.generate { |actual_csv| yield actual_csv } | |
actual_rows = CSV.parse(actual_csv_string) | |
expected_rows = CSV.read(expected_csv_path) | |
if ENV['STORE_ACTUAL_CSV'] && actual_rows != expected_rows | |
CSV.open("#{expected_csv_path}.actual", "wb") {|csv| actual_rows.each {|row| csv << row}} | |
end | |
assert_equal expected_rows.size, actual_rows.size |
This file contains 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 'active_record' | |
puts "Active Record #{ActiveRecord::VERSION::STRING}" | |
# TODO: How to get past sqlite3_connection undefined error? | |
# ActiveRecord::Base.establish_connection( | |
# :adapter => 'jdbcsqlite3', | |
# :database => ':memory:' | |
# ) | |
ActiveRecord::Base.establish_connection( |
This file contains 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
unless File.exists?('Gemfile') | |
File.write('Gemfile', <<-GEMFILE) | |
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails', branch: '4-0-stable' | |
#gem 'rails', github: 'rails/rails' | |
#gem 'rails' | |
gem 'sqlite3' | |
#gem 'pg' | |
GEMFILE |
This file contains 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
Script started on Thu Aug 22 06:46:34 2013 | |
~/Documents/myapp> rm -rf tmp/cache | |
~/Documents/myapp> r s | |
=> Booting Puma | |
=> Rails 4.0.0 application starting in development on http://0.0.0.0:3000 | |
=> Run `rails server -h` for more startup options | |
=> Ctrl-C to shutdown server | |
Puma 2.5.1 starting... | |
* Min threads: 0, max threads: 16 | |
* Environment: development |
This file contains 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
NameError: uninitialized constant Relation | |
load_missing_constant at /Users/bpardee/.rvm/gems/jruby-1.6.3@claritybase/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:509 | |
const_missing at /Users/bpardee/.rvm/gems/jruby-1.6.3@claritybase/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:183 | |
each at org/jruby/RubyArray.java:1603 | |
const_missing at /Users/bpardee/.rvm/gems/jruby-1.6.3@claritybase/gems/activesupport-3.0.9/lib/active_support/dependencies.rb:181 | |
relation at /Users/bpardee/.rvm/gems/jruby-1.6.3@claritybase/gems/activerecord-3.0.9/lib/active_record/base.rb:906 | |
scoped at /Users/bpardee/.rvm/gems/jruby-1.6.3@claritybase/gems/activerecord-3.0.9/lib/active_record/named_scope.rb:32 | |
first at /Users/bpardee/.rvm/gems/jruby-1.6.3@claritybase/gems/activerecord-3.0.9/lib/active_record/base.rb:444 | |
__file__ at ar_test.rb:26 | |
call at org/jruby/RubyProc.java:268 |