Sha256: 5f42400ab7fef0cf74cfc7b156656179d42a71d52e6204324d7904fdadebb5fa
Contents?: true
Size: 580 Bytes
Versions: 5
Compression:
Stored size: 580 Bytes
Contents
require 'test_helper' require 'action_controller' require 'coffee-rails' class SiteController < ActionController::Base self.view_paths = File.expand_path("../support", __FILE__) end DummyApp = ActionDispatch::Routing::RouteSet.new DummyApp.draw do get "site/index" end class TemplateHandlerTest < ActiveSupport::TestCase include Rack::Test::Methods def app @app ||= DummyApp end test "coffee views are served as javascript" do get "/site/index.js" assert_match "(function() {\n alert('hello world');\n}).call(this);\n", last_response.body end end
Version data entries
5 entries across 5 versions & 1 rubygems