Don't abuse as_json, it's not meant for consumption

The `as_json` API is a hook for JSON encoders to call, not meant for
consumption like this, and the result is not guarenteed to be stable
across Rails versions.

There might be other cases like this that we should revisit later, but
this one in particular is causing a test to fail on Rails master.
This commit is contained in:
Godfrey Chan 2013-11-29 21:58:09 -08:00
parent 7a60eacca9
commit 1a2114d87d
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ describe DiscourseUpdates do
Jobs::VersionCheck.any_instance.stubs(:execute).returns(true)
end
subject { DiscourseUpdates.check_version.as_json }
subject { DiscourseUpdates.check_version.instance_values }
context 'version check was done at the current installed version' do
before do