bin/console in duck_puncher-4.4.1 vs bin/console in duck_puncher-4.4.2
- old
+ new
@@ -1,11 +1,25 @@
#!/usr/bin/env ruby
require 'bundler/setup'
require 'pp'
-require 'duck_puncher'
require 'irb'
require 'byebug'
+
+# Stub out Rails
+module Rails
+ module VERSION
+ MAJOR = 4
+ end
+end
+
+# And AR
+module ActiveRecord
+ class Base
+ end
+end
+
+require 'duck_puncher'
require_relative '../test/fixtures/wut'
DuckPuncher.logger.level = Logger::DEBUG
if ENV['PUNCH'] != 'no'