Sha256: 2d91d2f3d089eac26c11c87289b273c01907e0b1ee31d8fffc5fcfd5313bda30

Contents?: true

Size: 388 Bytes

Versions: 8

Compression:

Stored size: 388 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Normalizy::RSpec::Matcher, '.to' do
  it 'caches the value' do
    matcher = described_class.new(:downcase)

    matcher.to :to

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

  it 'returns it self' do
    matcher = described_class.new(:downcase)

    expect(matcher.to(:to)).to be matcher
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
normalizy-1.5.0 spec/normalizy/rspec/matcher/to_spec.rb
normalizy-1.4.0 spec/normalizy/rspec/matcher/to_spec.rb
normalizy-1.3.0 spec/normalizy/rspec/matcher/to_spec.rb
normalizy-1.2.0 spec/normalizy/rspec/matcher/to_spec.rb
normalizy-1.1.1 spec/normalizy/rspec/matcher/to_spec.rb
normalizy-1.1.0 spec/normalizy/rspec/matcher/to_spec.rb
normalizy-1.0.1 spec/normalizy/rspec/matcher/to_spec.rb
normalizy-1.0.0 spec/normalizy/rspec/matcher/to_spec.rb