Browse Source

lk | tests bike index is not called

master
Louis Knapp 9 years ago
parent
commit
9948681b68
  1. 4
      spec/models/bike_spec.rb

4
spec/models/bike_spec.rb

@ -2,8 +2,8 @@ require 'spec_helper'
describe Bike do
describe "#post_to_bike_index" do
xit "calls BikeIndexLogger if no bike_index_id is present" do
expect(BikeIndexLogger).to receive(:perform_async)
it "does not calls BikeIndexLogger if no bike_index_id is present" do
expect(BikeIndexLogger).not_to receive(:perform_async)
create(:bike, bike_index_id: nil)
end

Loading…
Cancel
Save