use memberships correctly
This commit is contained in:
parent
ae18098c6d
commit
db171eba22
@ -9,10 +9,10 @@ module Locomotive
|
|||||||
_source.present?
|
_source.present?
|
||||||
end
|
end
|
||||||
def name
|
def name
|
||||||
_source.account.name if logged_in?
|
_source.name if logged_in?
|
||||||
end
|
end
|
||||||
def email
|
def email
|
||||||
_source.account.email if logged_in?
|
_source.email if logged_in?
|
||||||
end
|
end
|
||||||
def logout_path
|
def logout_path
|
||||||
destroy_admin_session_path
|
destroy_admin_session_path
|
||||||
|
@ -14,7 +14,7 @@ describe Locomotive::Liquid::Drops::CurrentUser do
|
|||||||
@controller.stubs(:request).returns(OpenStruct.new(:url => '/subpage', :fullpath => '/subpage'))
|
@controller.stubs(:request).returns(OpenStruct.new(:url => '/subpage', :fullpath => '/subpage'))
|
||||||
@controller.current_site = @site
|
@controller.current_site = @site
|
||||||
|
|
||||||
@admin = FactoryGirl.build(:admin)
|
@admin = FactoryGirl.build(:admin).account
|
||||||
end
|
end
|
||||||
|
|
||||||
def expect_render(template, text)
|
def expect_render(template, text)
|
||||||
|
Loading…
Reference in New Issue
Block a user