Sha256: 5d47962e7abeac226fb10b2e35d443b9be34f63aaafa0649e5d6a737967d5625
Contents?: true
Size: 401 Bytes
Versions: 3
Compression:
Stored size: 401 Bytes
Contents
describe "Matcher::BeNil" do it 'be_nil passes when value is nil' do expect(nil).to be_nil end it "be_nil fails when value is true" do expect_failure{ expect(true).to be_nil } end it "be_nil fails when value is false" do expect_failure{ expect(false).to be_nil } end it "be_nil fails when value is an Object" do expect_failure{ expect(Object.new).to be_nil } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bacon-expect-1.0.2 | spec_app/spec/matchers/be_nil_spec.rb |
bacon-expect-1.0.1 | spec_app/spec/matchers/be_nil_spec.rb |
bacon-expect-0.1 | spec_app/spec/matchers/be_nil_spec.rb |