Sha256: aaffb5a188dad925682bc1d168f99a23377e69d43c427f43c65859ced7f9b6d0
Contents?: true
Size: 1.33 KB
Versions: 3
Compression:
Stored size: 1.33 KB
Contents
require 'minitest/autorun' require 'vueck' class VueCKTest < Minitest::Test CSS = ["200", {"Content-Type"=>"text/css", "Content-Length"=>"32"}, [".dogs{color:red}.post{color:red}"]] JS = ["200",{"Content-Type"=>"application/javascript", "Content-Length"=>"691"},[%q{var one_lang_and_no_style = Vue.component('one_lang_and_no_style',{template:'<div class="post"><h1>Other Guy</h1><h1>Oh hai mark</h1></div>', props: ["test"], data: { adam: true, drew: true }, methods: { yo: function() { } } });var two_langs = Vue.component('two_langs',{template:'<div class="dogs"><h1>Are Cool</h1></div>', props: ["test"], data: { adam: true, drew: true }, methods: { yo: function() { } } });var default_langs = Vue.component('default_langs',{template:' Oh hai mark props: ["test"], data: { adam: true }, methods: { yo: function() { return this.adam; } } .post { color: red; } ', props: ["test"], data: { adam: true }, methods: { yo: function() { return this.adam; } } });}]] def test_render_css plugin = VueCK::Plugin.new() response = plugin.call({"PATH_INFO"=>"/vue/vue.css", "REQUEST_METHOD"=>"GET"}) assert response == CSS end def test_render_js plugin = VueCK::Plugin.new() response = plugin.call({"PATH_INFO"=>"/vue/vue.js", "REQUEST_METHOD"=>"GET"}) assert response == JS end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vueck-1.0.4 | test/test.rb |
vueck-1.0.3 | test/test.rb |
vueck-1.0.2 | test/test.rb |