Sha256: 6cbdbfdeed3b7ccd52945fb833a3787ab5f65da3b2f71def4e2419e4ad9058cd

Contents?: true

Size: 955 Bytes

Versions: 7

Compression:

Stored size: 955 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
Bundler.setup

require 'sqed'
require 'support/image_helpers'
require 'byebug'
require 'amazing_print'
require 'fileutils'
require 'rmagick'

FileUtils::mkdir_p 'tmp'

RSpec.configure do |config|

  config.raise_errors_for_deprecations!

   config.run_all_when_everything_filtered = false 
   # config.filter_run :focus

  # Run specs in random order to surface order dependencies. If you find an
  # order dependency and want to debug it, you can fix the order by providing
  # the seed, which is printed after each run.
  #     --seed 1234
  # config.order = 'random'

end

def in_range(value, percentage, midpoint)  #order of second and third params to be consistent with be_within
  # value is a scalar for testing against the range, percentage is a float less than 1, midpoint is the nominal center of the range
  return (value <= midpoint*(1.0 + percentage)) & (value >= midpoint*(1.0 - percentage))
end


Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sqed-0.8.3 spec/spec_helper.rb
sqed-0.8.2 spec/spec_helper.rb
sqed-0.8.1 spec/spec_helper.rb
sqed-0.8.0 spec/spec_helper.rb
sqed-0.7.1 spec/spec_helper.rb
sqed-0.7.0 spec/spec_helper.rb
sqed-0.6.0 spec/spec_helper.rb