Sha256: 5007f7184ce59b053b598a3723bea33149427511f0b9788c2fc7e6cb6155dfdd
Contents?: true
Size: 1.43 KB
Versions: 2
Compression:
Stored size: 1.43 KB
Contents
require 'minitest/autorun' require 'vueck' class VueCKTest < Minitest::Test CSS = ["200", {"Content-Type"=>"text/css", "Content-Length"=>"48"}, [".post{color:red}.post{color:green}h1{color:pink}"]] JS = ["200",{"Content-Type"=>"application/javascript", "Content-Length"=>"735"},["var test_component = Vue.component('test_component',{template:'<div class=\"post\"><h1>Adam</h1></div>', props: [\"test\"], data: { adam: true }, methods: { yo: function() { } } });var test_component = Vue.component('test_component',{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 test_component = Vue.component('test_component',{template:'<Oh>, Hai Mark!</Oh>', props: [\"test\"], data: { adam: true, drew: true }, methods: { yo: function() { } } });var test_component = Vue.component('test_component',{template:'<Oh>, Hai Mark!</Oh>', props: [\"test\"], data: { adam: true, drew: true }, methods: { yo: function() { } } });"]] def test_render_css plugin = VueCK::Plugin.new() response = plugin.call({"PATH_INFO"=>"/vue.css", "REQUEST_METHOD"=>"GET"}) require pry ; binding.pry assert response == CSS end def test_render_js plugin = VueCK::Plugin.new() response = plugin.call({"PATH_INFO"=>"/vue.js", "REQUEST_METHOD"=>"GET"}) assert response == JS end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vueck-1.0.1 | test/test.rb |
vueck-1.0.0 | test/test.rb |