[style]Fix style in user_datatable_spec

This commit is contained in:
Jimmy 2021-04-08 03:40:27 +08:00 committed by CactusPuppy
parent ffa088ee07
commit ea7f1a7edb
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82

View file

@ -3,7 +3,7 @@
require 'spec_helper'
describe UserDatatable do
subject! do
subject!(:user_datatable) do
described_class.new(view)
end
@ -92,7 +92,7 @@ describe UserDatatable do
skip 'outputs' do
let(:user) { User.first }
let(:output) { subject.as_json }
let(:output) { user_datatable.as_json }
it 'recordsTotal' do
expect(output[:recordsTotal]).to eq(1)