Sha256: 52766dfbb13d8bcbc4ece44a247955ed333a8522dbc8c466db6fc57b158244f5
Contents?: true
Size: 660 Bytes
Versions: 3
Compression:
Stored size: 660 Bytes
Contents
# frozen_string_literal: true RSpec.describe Fear::PartialFunction::Any do subject(:any) { described_class } describe ".===" do it { expect(any === 42).to eq(true) } it { expect(any === "foo").to eq(true) } it { expect(any === Object.new).to eq(true) } end describe ".==" do it { expect(any == 42).to eq(true) } it { expect(any == "foo").to eq(true) } it { expect(any == Object.new).to eq(true) } end describe ".to_proc" do subject(:any_proc) { any.to_proc } it { expect(any_proc.(42)).to eq(true) } it { expect(any_proc.("foo")).to eq(true) } it { expect(any_proc.(Object.new)).to eq(true) } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fear-3.0.0 | spec/fear/partial_function/any_spec.rb |
fear-2.0.1 | spec/fear/partial_function/any_spec.rb |
fear-2.0.0 | spec/fear/partial_function/any_spec.rb |