mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
Fix creepy RSpec-induced bug
This commit is contained in:
parent
1947279c2a
commit
cf5c12f39f
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue