Fix creepy RSpec-induced bug

This commit is contained in:
Eric Allen 2011-02-28 23:56:18 -08:00
parent 1947279c2a
commit cf5c12f39f

View file

@ -12,6 +12,10 @@ module Tracks
def nil?
yield if @source_view.nil? && block_given?
end
def context
yield if :context == @source_view && block_given?
end
def method_missing(check_source_view,*args)
yield if check_source_view == @source_view && block_given?
@ -61,4 +65,4 @@ module Tracks
end
ActionController::Base.send(:include, Tracks::SourceViewSwitching::Controller)
ActionController::Base.send(:include, Tracks::SourceViewSwitching::Controller)