Sha256: 8cf703dbf4fd6b2de417485c225e4b1463fa6dd14ce3a45414e9514748f97e91

Contents?: true

Size: 370 Bytes

Versions: 2

Compression:

Stored size: 370 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Normalizy::RSpec::Matcher, '.to' do
  let!(:matcher) { described_class.new :name }
  let!(:model)   { User }

  it 'caches the value' do
    matcher.to :to

    expect(matcher.instance_variable_get(:@to)).to eq :to
  end

  it 'returns it self' do
    expect(matcher.to(:to)).to be matcher
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
normalizy-0.2.0 spec/normalizy/rspec/matcher/to_spec.rb
normalizy-0.1.0 spec/normalizy/rspec/matcher/to_spec.rb