spec/acfs/stub_spec.rb in acfs-0.43.1 vs spec/acfs/stub_spec.rb in acfs-0.43.2

- old
+ new

@@ -161,13 +161,19 @@ return: [{id: 1, text: 'Foo'}, {id: 2, text: 'Bar'}], headers: headers end let!(:comments) { Comment.all } - let(:headers) { {'X-Total-Pages' => '2'} } + let(:headers) do + { + 'X-Total-Pages' => '2', + 'X-Total-Count' => '10' + } + end subject { Acfs.run; comments } its(:total_pages) { should eq 2 } + its(:total_count) { should eq 10 } end end context 'with update action' do before do