spec/helpers/current_users.rb in cantango-api-0.1.1 vs spec/helpers/current_users.rb in cantango-api-0.1.2
- old
+ new
@@ -1,10 +1,14 @@
module CurrentUsers
def current_user
@current_user ||= ::User.new 'stan', 'stan@mail.ru', :role => 'user'
end
+ def current_guest
+ @current_guest ||= ::User.new 'guest', 'guest@mail.ru', :role => 'guest'
+ end
+
def current_admin
- @current_admin ||= ::User.new 'admin', 'admin@mail.ru', :role => 'admin'
+ @current_admin ||= ::Admin.new 'admin', 'admin@mail.ru', :role => 'admin'
end
end