Sha256: 1429d1a10b12ab6da05cdfc3d88d3e8d11a7c8b1d3c0cbcf4e0d5ff6e1101faf
Contents?: true
Size: 755 Bytes
Versions: 1
Compression:
Stored size: 755 Bytes
Contents
require './lib/flok.rb' require 'tempfile' require 'securerandom' require 'execjs' def ensure_tmp tmp_spec_path = './spec/tmp' Dir.mkdir(tmp_spec_path) unless File.exists?(tmp_spec_path) end RSpec.describe "Flok::MergeSourceSpec" do it "when merging the kernel, it returns a string" do str = Flok::MergeSource.merge_kernel expect(str.class).to be(String) end it "when merging the kernel, it returns a string with length" do str = Flok::MergeSource.merge_kernel expect(str.length).to be > 0 end it "when merging the kernel, the kernel files located in ./lib/js/kernel/ do merge and run without js syntax errors" do str = Flok::MergeSource.merge_kernel ExecJS.compile(str) #It does not throw an error end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
flok-0.0.2 | spec/merge_source_spec.rb |