Sha256: 97d223009b843a15622ca3ae5854ae9f0d30f7b108b0db5cf348ce7c6fe3c738
Contents?: true
Size: 547 Bytes
Versions: 26
Compression:
Stored size: 547 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 "alert('hello world');\n", last_response.body end end
Version data entries
26 entries across 25 versions & 6 rubygems