spec/spec_helper.rb in assembly-objectfile-2.1.3 vs spec/spec_helper.rb in assembly-objectfile-2.1.4

- old
+ new

@@ -5,25 +5,17 @@ require File.expand_path("#{File.dirname(__FILE__)}/../config/boot") require 'pry-byebug' RSpec.configure do |config| - config.order = 'random' -end + # Enable flags like --only-failures and --next-failure + config.example_status_persistence_file_path = ".rspec_status" -PATH_TO_GEM = File.expand_path("#{File.dirname(__FILE__)}/..") -TEST_INPUT_DIR = File.join(PATH_TO_GEM, 'spec', 'test_data', 'input') -TEST_TIF_INPUT_FILE = File.join(TEST_INPUT_DIR, 'test.tif') -TEST_JP2_INPUT_FILE = File.join(TEST_INPUT_DIR, 'test.jp2') + config.expect_with :rspec do |c| + c.syntax = :expect + end -TEST_TIFF_NO_COLOR_FILE = File.join(TEST_INPUT_DIR, 'test_no_color_profile.tif') + config.default_formatter = 'doc' if config.files_to_run.one? -TEST_RES1_TIF1 = File.join(TEST_INPUT_DIR, 'res1_image1.tif') -TEST_RES1_TEXT = File.join(TEST_INPUT_DIR, 'res1_textfile.txt') -TEST_RES1_PDF = File.join(TEST_INPUT_DIR, 'res1_transcript.pdf') - -TEST_FILE_NO_EXIF = File.join(TEST_INPUT_DIR, 'file_with_no_exif.xml') - -TEST_JSON_FILE = File.join(TEST_INPUT_DIR, 'test.json') - -TEST_OBJ_FILE = File.join(TEST_INPUT_DIR, 'someobject.obj') -TEST_PLY_FILE = File.join(TEST_INPUT_DIR, 'someobject.ply') + config.order = 'random' + Kernel.srand config.seed +end