spec/spec_helper.rb
# A quick-and-dirty method to load RSpec matchers in spec/support/matchers
A quick-and-dirty method to load RSpec matchers in spec/support/matchers
A quick - and - dirty method to load RSpec matchers in spec / support / matchers
def require_custom_matcher_named(matcher_name)
  require "#{File.join(
    File.dirname(__FILE__),
    "support", "matchers",
    "#{matcher_name}_matcher.rb")}"
end
def require_custom_matcher_named ( matcher_name ) require "#{File.join(
    File.dirname(__FILE__),
    "support", "matchers",
    "#{matcher_name}_matcher.rb")}" end
A quick-and-dirty method to load RSpec matchers in spec/support/matchers
A quick - and - dirty method to load RSpec matchers in spec / support / matchers
matcher_name