spec/spec_helper.rb in dlib-1.1.5 vs spec/spec_helper.rb in dlib-1.2.0
- old
+ new
@@ -17,9 +17,14 @@
#
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
require 'dlib'
+def fixture_file(filename)
+ base_dir = File.expand_path(File.join(File.dirname(__FILE__), 'fixture'))
+ File.open(File.join(base_dir, filename))
+end
+
RSpec.configure do |config|
# rspec-expectations config goes here. You can use an alternate
# assertion/expectation library such as wrong or the stdlib/minitest
# assertions if you prefer.
config.expect_with :rspec do |expectations|