Sha256: ee35fb0acd959f24a98e8fb22289366e8a036470ccac08961e770b33e27eec72
Contents?: true
Size: 414 Bytes
Versions: 8
Compression:
Stored size: 414 Bytes
Contents
# frozen_string_literal: true require 'rails_helper' RSpec.describe Normalizy::RSpec::Matcher, '.from' do it 'caches the value' do matcher = described_class.new(:downcase_field) matcher.from :from expect(matcher.instance_variable_get(:@from)).to eq :from end it 'returns it self' do matcher = described_class.new(:downcase_field) expect(matcher.from(:from)).to be matcher end end
Version data entries
8 entries across 8 versions & 1 rubygems