Sha256: 4ce21df7028107a1a257d8319dfa9246aeb0d175d2e1186c85d41d8778108494
Contents?: true
Size: 958 Bytes
Versions: 4
Compression:
Stored size: 958 Bytes
Contents
require_relative "./helpers" describe Spinebox::ERBContext do before(:all) do Dir.chdir "#{Spinebox.root}/templates" Spinebox.boot! end context "javascript" do it "should offer asset tags concatenated" do Spinebox.config.concatenate = true javascript_include_tag("application").split("\n").should have(1).tag end it "should offer asset tags unconcatenated" do Spinebox.config.concatenate = false javascript_include_tag("application").split("\n").should have_at_least(5).tags end end context "css" do it "should offer asset tags concatenated" do Spinebox.config.concatenate = true stylesheet_link_tag("application").split("\n").should have(1).tag end it "should offer asset tags unconcatenated" do Spinebox.config.concatenate = false stylesheet_link_tag("application").split("\n").should have_at_least(1).tag end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
spinebox-0.0.5 | spec/erb_context_spec.rb |
spinebox-0.0.4 | spec/erb_context_spec.rb |
spinebox-0.0.3 | spec/erb_context_spec.rb |
spinebox-0.0.2 | spec/erb_context_spec.rb |