test/helper.rb in osheet-1.1.0 vs test/helper.rb in osheet-1.1.1
- old
+ new
@@ -5,10 +5,12 @@
$LOAD_PATH.unshift(File.expand_path("../..", __FILE__))
# require pry for debugging (`binding.pry`)
require 'pry'
+require 'test/support/factory'
+
class Assert::Context
# Macros
def self.be_a_meta_element(*args)
@@ -63,6 +65,15 @@
end
end
end
+end
+
+# 1.8.7 backfills
+
+# Array#sample
+if !(a = Array.new).respond_to?(:sample) && a.respond_to?(:choice)
+ class Array
+ alias_method :sample, :choice
+ end
end