Sha256: 50261ae82233b3d19e443c95828f36095fec6a6f6bfacb4fe629dd2b26cd755e

Contents?: true

Size: 354 Bytes

Versions: 24

Compression:

Stored size: 354 Bytes

Contents

ENV['RAILS_ENV'] ||= 'test'
require File.expand_path('dummy/config/environment', __dir__)
require 'rspec/rails'

RSpec.configure(&:infer_spec_type_from_file_location!)

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

24 entries across 24 versions & 1 rubygems

Version Path
fomantic-ui-sass-2.9.3 spec/spec_helper.rb
fomantic-ui-sass-2.9.2 spec/spec_helper.rb
fomantic-ui-sass-2.9.1 spec/spec_helper.rb
fomantic-ui-sass-2.9.0 spec/spec_helper.rb
fomantic-ui-sass-2.8.8.1 spec/spec_helper.rb
fomantic-ui-sass-2.8.8 spec/spec_helper.rb
fomantic-ui-sass-2.8.7.1 spec/spec_helper.rb
fomantic-ui-sass-2.8.7 spec/spec_helper.rb
fomantic-ui-sass-2.8.6 spec/spec_helper.rb
fomantic-ui-sass-2.8.5 spec/spec_helper.rb
fomantic-ui-sass-2.8.4 spec/spec_helper.rb
fomantic-ui-sass-2.8.3 spec/spec_helper.rb
fomantic-ui-sass-2.8.2 spec/spec_helper.rb
fomantic-ui-sass-2.8.1.1 spec/spec_helper.rb
fomantic-ui-sass-2.8.1 spec/spec_helper.rb
fomantic-ui-sass-2.7.8 spec/spec_helper.rb
fomantic-ui-sass-2.7.7 spec/spec_helper.rb
fomantic-ui-sass-2.7.6 spec/spec_helper.rb
fomantic-ui-sass-2.7.5 spec/spec_helper.rb
fomantic-ui-sass-2.7.4 spec/spec_helper.rb