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:
parent
7a60eacca9
commit
1a2114d87d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue