Sha256: 5f9ef173fa7c4e0ecf985b3e7b6d8b398fb7cabd06ce8a8113ed6ad14335ba56
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
require 'test_helper' # We need ActionPack loaded to test this out require 'actionpack' require 'action_controller' require 'rails-caddy' class ApplicationController < ActionController::Base session_options[:key] = "abc" end class RailsCaddyTest < Test::Unit::TestCase context "RailsCaddy has been initialized" do setup do RailsCaddy.init! end should "add TimecopController::ActionControllerExtensions to ActionController::Base" do assert ActionController::Base.included_modules.include?(TimecopController::ActionControllerExtensions) end should "add SanitizeEmailController::ActionControllerExtensions to ActionController::Base" do assert ActionController::Base.included_modules.include?(SanitizeEmailController::ActionControllerExtensions) end should "load RailsCaddyController" do assert Object.const_defined?(:RailsCaddyController) end should "add rails-caddy/views to the view_path" do path = File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "rails-caddy", "views")) assert ActionController::Base.view_paths.include?(path) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-caddy-0.0.8 | test/rails_caddy_test.rb |