Sha256: 24cdb3285b303f9409ac98938f4b995d44d44dd26170f13bcee51e30e74a38f7
Contents?: true
Size: 518 Bytes
Versions: 3
Compression:
Stored size: 518 Bytes
Contents
# encoding: utf-8 module Selector describe Selector::Nothing do let(:nothing) { described_class.instance } describe ".instance" do subject { nothing } it { is_expected.to be_kind_of Condition } it { is_expected.to be_kind_of Singleton } it { is_expected.to be_frozen } end # describe .instance describe "#[]" do subject { nothing[:foo] } it { is_expected.to eql(false) } end # describe #[] end # describe Selector::Nothing end # module Selector
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
selector-0.0.3 | spec/unit/selector/nothing_spec.rb |
selector-0.0.2 | spec/unit/selector/nothing_spec.rb |
selector-0.0.1 | spec/unit/selector/nothing_spec.rb |