Sha256: f727156b7cc97ad9aa6561a8112f58e7decbfa3f3ec052703ea1c9bd76b27d80
Contents?: true
Size: 568 Bytes
Versions: 11
Compression:
Stored size: 568 Bytes
Contents
require 'spec_helper' describe Finitio, "stdlib memoization" do describe "is_stdlib_source?" do it 'says false when source code' do expect(Finitio.is_stdlib_source?(".String")).to be_falsy end it 'says false when a source file' do expect(Finitio.is_stdlib_source?(Path.dir/"system.fio")).to be_falsy end it 'says true when a stdlib file' do source = Path.dir.parent.parent/"lib/finitio/stdlib/finitio/data.fio" expect(source).to be_file expect(Finitio.is_stdlib_source?(source)).to be_truthy end end end
Version data entries
11 entries across 11 versions & 1 rubygems