Sha256: b15fbcff410f933cbbcbe129047fc0b35886ff199e89751cf60c68047cad06eb
Contents?: true
Size: 356 Bytes
Versions: 1
Compression:
Stored size: 356 Bytes
Contents
require 'test_helper' module Papercat class JavascriptTest < ActiveSupport::TestCase test "minify" do source = <<-JS function add (cons, pur) { return cons + pur; } JS script = Javascript.create(pathname: 'test', source: source) assert_equal 'function add(n,d){return n+d}', script.body end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
papercat-0.0.2 | test/models/papercat/javascript_test.rb |