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

Version Path
finitio-0.12.0 spec/finitio/test_stdlib_memoization.rb
finitio-0.11.4 spec/finitio/test_stdlib_memoization.rb
finitio-0.11.3 spec/finitio/test_stdlib_memoization.rb
finitio-0.11.2 spec/finitio/test_stdlib_memoization.rb
finitio-0.11.1 spec/finitio/test_stdlib_memoization.rb
finitio-0.10.0 spec/finitio/test_stdlib_memoization.rb
finitio-0.9.1 spec/finitio/test_stdlib_memoization.rb
finitio-0.9.0 spec/finitio/test_stdlib_memoization.rb
finitio-0.8.0 spec/finitio/test_stdlib_memoization.rb
finitio-0.7.0 spec/finitio/test_stdlib_memoization.rb
finitio-0.7.0.pre.rc4 spec/finitio/test_stdlib_memoization.rb