Commit f052560c authored by Stan Hu's avatar Stan Hu

No need to call `and_call_original` in spec

parent 4530d595
......@@ -309,7 +309,7 @@ describe Geo::RepositorySyncService do
force_to_redownload_repository: true
)
expect(subject).not_to receive(:fail_registry!).and_call_original
expect(subject).not_to receive(:fail_registry!)
subject.execute
end
......
......@@ -181,7 +181,7 @@ RSpec.describe Geo::WikiSyncService do
force_to_redownload_wiki: true
)
expect(subject).not_to receive(:fail_registry!).and_call_original
expect(subject).not_to receive(:fail_registry!)
subject.execute
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment