spec/callbacks_spec.rb in wayfarer-0.4.1 vs spec/callbacks_spec.rb in wayfarer-0.4.2

- old
+ new

@@ -6,11 +6,11 @@ let(:url) { "https://alpha.com" } let(:task) { build(:task, batch: "batch", url: url) } let(:klass) do Class.new(Wayfarer::Base) do - route.host "alpha.com", to: :alpha - route.host "beta.com", to: :beta + route { host "alpha.com", to: :alpha } + route { host "beta.com", to: :beta } before_fetch do |job| Spy.before_fetch(self, job) end