spec/lib/azeroth/routes_builder_spec.rb in azeroth-0.2.0 vs spec/lib/azeroth/routes_builder_spec.rb in azeroth-0.3.0

- old
+ new

@@ -29,17 +29,17 @@ end end end before do - 10.times { Document.create } + create_list(:document, 10) allow(controller).to receive(:params) .and_return(params) allow(controller).to receive(:render) - .with(json: expected_json) + .with(json: expected_json, status: :ok) .and_return(expected_json) end describe '#append' do before { routes_builder.append } @@ -59,10 +59,10 @@ it 'renders the json' do controller.index expect(controller).to have_received(:render) - .with(json: expected_json) + .with(json: expected_json, status: :ok) end end end end