test/assets_test.rb in coffee-rails-3.2.2 vs test/assets_test.rb in coffee-rails-4.0.0.beta1

- old
+ new

@@ -6,10 +6,11 @@ require "rails" require "action_controller/railtie" require "sprockets/railtie" @app = Class.new(Rails::Application) + @app.config.eager_load = false @app.config.active_support.deprecation = :stderr @app.config.assets.enabled = true @app.config.assets.cache_store = [ :file_store, "#{tmp_path}/cache" ] @app.paths["log"] = "#{tmp_path}/log/test.log" @app.initialize! @@ -23,10 +24,10 @@ test "coffee-script.js is included in Sprockets environment" do @app.assets["coffee-script"].write_to("#{tmp_path}/coffee-script.js") assert_match "/lib/assets/javascripts/coffee-script.js.erb", @app.assets["coffee-script"].pathname.to_s - assert_match "this.CoffeeScript", File.open("#{tmp_path}/coffee-script.js").read + assert_match "CoffeeScript Compiler", File.open("#{tmp_path}/coffee-script.js").read end def tmp_path "#{File.dirname(__FILE__)}/tmp" end