Check for updates: edge cases when the message on the dashboard doesn't make sense.

This commit is contained in:
Neil Lalonde
2013-07-03 11:06:07 -04:00
parent 72632670db
commit 3c38062802
11 changed files with 208 additions and 30 deletions

View File

@ -6,6 +6,7 @@ describe Admin::DashboardController do
#NOTE: Rails.cache should be blanked between tests, at the moment we can share state with it
# that is seriously bust on quite a few levels
Rails.cache.delete("admin-dashboard-data-#{Discourse::VERSION::STRING}")
Jobs::VersionCheck.any_instance.stubs(:execute).returns(true)
end
it "is a subclass of AdminController" do