Sha256: e24c97b2c9554dce3cfa12238527a2558ce1ba5437ef8946d9b8a3ddaddb4fdb

Contents?: true

Size: 260 Bytes

Versions: 2

Compression:

Stored size: 260 Bytes

Contents

# Load all files inside spec/matchers
matchers_dir = File.join(Rails.root, 'spec', 'matchers')
Dir.entries(matchers_dir).each do |entry|
  if entry =~ /_matcher.rb$/
    filename = entry.gsub(/.rb$/, '')
    require File.join(matchers_dir, filename)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
Objective3-objective_spec-0.0.2 lib/objective_spec/matchers.rb
Objective3-objective_spec-0.0.3 lib/objective_spec/matchers.rb