Sha256: 640a125ef417cbf68f9ec72ba0974ae0025cbbbdf603524f5b73536903f9913b
Contents?: true
Size: 380 Bytes
Versions: 46
Compression:
Stored size: 380 Bytes
Contents
ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../dummy/config/environment", __FILE__) require 'rspec/rails' RSpec.configure do |config| config.infer_spec_type_from_file_location! end def normalize(str) str.split("\n").map(&:strip).join("") end RSpec::Matchers.define :like_of do |expected| match do |actual| normalize(actual) == normalize(expected) end end
Version data entries
46 entries across 46 versions & 2 rubygems