Sha256: fbe22f353418f5c1d018966d4743af4a0badcb960eb2b2b51164c05447c309e4
Contents?: true
Size: 579 Bytes
Versions: 11
Compression:
Stored size: 579 Bytes
Contents
require File.expand_path('../test_helper', __FILE__) class IgnoreTest < UnitTest class App < Main assets do js :main, '/main.js', %w[/js/*.js] end end def app App end test "ignore as individual file" do get '/js/_ignoreme.js' assert last_response.status == 404 end test "ignore in package" do get '/main.js' assert last_response.body.size > 0 assert !last_response.body.include?("BUMBLEBEE") end test "package files" do assert !app.assets.packages['main.js'].files.any? { |s| s.include? '_ignoreme.js' } end end
Version data entries
11 entries across 11 versions & 1 rubygems