lib/rspectacular/support/rails.rb in rspectacular-0.56.0 vs lib/rspectacular/support/rails.rb in rspectacular-0.57.0

- old
+ new

@@ -4,10 +4,10 @@ RSpec.configure do |config| config.infer_base_class_for_anonymous_controllers = true config.infer_spec_type_from_file_location! if config.respond_to?(:infer_spec_type_from_file_location!) - if File.join(Dir.pwd, 'spec', 'dummy', 'config', 'environment').exist? + if Pathname.pwd.join('spec', 'dummy', 'config', 'environment').exist? config.include Rspectacular::NamespacedEngineControllerRouteFix, :type => :controller end end end