Forum: Ruby on Rails assert method is not visible?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2f4da0b00002db5629dcaade6a8cdfc2?d=identicon&s=25 Michal Burak (michalb82)
on 2009-05-29 18:38
Hi,

  test "is_admin method is not visible" do
      get :is_admin
      assert_???
  end

is_admin is protected and should stay that way forever. What assertion
do I use?

M.
5f94b9b346c2aa648a80bc259978e5bc?d=identicon&s=25 Colin Law (Guest)
on 2009-05-30 09:32
(Received via mailing list)
What response do you expect from get: is_admin?  What will a user see if
he
calls it up from a browser?

Colin

2009/5/29 Michal Burak <rails-mailing-list@andreas-s.net>
This topic is locked and can not be replied to.