Sha256: b779179176caccb4ffc467596bbe712364f19507f01e7b79ac6f98cb66127978
Contents?: true
Size: 842 Bytes
Versions: 2
Compression:
Stored size: 842 Bytes
Contents
require 'test_helper' require 'actionpack' require 'action_controller' # require 'action_controller/assertions/routing_assertions' require "timecop-console/timecop_controller_methods" # We need this defined for the session key class ApplicationController < ActionController::Base end require 'timecop_console' class SampleController < ActionController::Base end class TimecopConsoleTest < Test::Unit::TestCase should "add around_filter to SampleController" do assert SampleController.around_filter.any?{|filter| filter.around? && filter.method == :handle_timecop_offset}, "before_filter should have been applied" end # should "recognize the new routes" do # assert_recognizes({:controller => 'timecop', :action => 'update'}) # assert_recognizes({:controller => 'timecop', :action => 'reset'}) # end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
jtrupiano-timecop-console-0.1.0 | test/timecop_console_test.rb |
timecop-console-0.1.0 | test/timecop_console_test.rb |