spec/lib/dispatch-rider/configuration_spec.rb in dispatch-rider-2.1.0 vs spec/lib/dispatch-rider/configuration_spec.rb in dispatch-rider-2.2.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'spec_helper'
describe DispatchRider::Configuration do
subject { described_class.new }
@@ -31,10 +33,10 @@
expect(subject).to respond_to :around
end
end
describe "#handlers" do
- before :each do
+ before do
subject.handler_path = "./spec/fixtures/handlers"
end
it "loads the files and converts their names to symbols" do
expect(subject.handlers).to include(:test_handler, :another_test_handler)