Sha256: ae6e209b77c6b002a4b59611a0347570f024126350553137b3b4d079bad8e6ca
Contents?: true
Size: 786 Bytes
Versions: 2
Compression:
Stored size: 786 Bytes
Contents
require 'test_helper' class CompilerTest < Test::Unit::TestCase def setup @compiler = Golf::Compiler.new(File.expand_path("../twitter_compiled", __FILE__)) @reference_file = File.read(File.expand_path("../twitter_compiled/golfapp/components.js", __FILE__)) end def test_componentsjs_generation componentjs = @compiler.generate_componentsjs known_good = File.read(File.expand_path("../twitter_compiled/golfapp/components.js", __FILE__)) assert_equal componentjs.gsub(' ','').gsub('\n','').gsub('\\',''), known_good.gsub(' ','').gsub('\n','').gsub('\\','') end def test_package_name_resolution result = @compiler.package_name '/asd/asdasd/golfapp/components/golf/twitter/Tweet/Tweet.html' assert_equal 'golf.twitter.Tweet', result end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
golf-0.4.14 | test/test_compiler.rb |
golf-0.4.13 | test/test_compiler.rb |