Sha256: 52065250c644b48464500a1eaba0fa699d8ae12c4a524062b97f0683782e95ab
Contents?: true
Size: 990 Bytes
Versions: 39
Compression:
Stored size: 990 Bytes
Contents
# frozen_string_literal = true RSpec.describe :is_blank do link :is_blank, from: :ree_object context "blank" do it { expect(is_blank(nil)). to be true expect(is_blank(false)). to be true expect(is_blank("")). to be true expect(is_blank(" ")). to be true expect(is_blank(" \n\t \r ")). to be true expect(is_blank(" ")). to be true expect(is_blank("\u00a0")). to be true expect(is_blank([])). to be true expect(is_blank({})). to be true expect(is_blank(" ".encode("UTF-16LE"))).to be true } end context "not blank" do it { expect(is_blank(Object.new)).to be false expect(is_blank(true)).to be false expect(is_blank(0)).to be false expect(is_blank(1)).to be false expect(is_blank([nil])).to be false expect(is_blank({ nil => 0 })).to be false expect(is_blank(Time.now)).to be false expect(is_blank("my value".encode("UTF-16LE"))).to be false } end end
Version data entries
39 entries across 39 versions & 1 rubygems