spec/integration/setup_spec.rb in hanami-2.0.0.rc1 vs spec/integration/setup_spec.rb in hanami-2.0.0

- old
+ new

@@ -124,11 +124,11 @@ context "config/app.rb exists in current directory" do it "returns its absolute path" do with_tmp_directory(Dir.mktmpdir) do write "config/app.rb" - expect(app_path).to match(%r{^/.*/config/app.rb$}) + expect(app_path.to_s).to match(%r{^/.*/config/app.rb$}) end end end context "config/app.rb exists in a parent directory" do @@ -136,10 +136,10 @@ with_tmp_directory(Dir.mktmpdir) do write "config/app.rb" write "lib/foo/bar/.keep" Dir.chdir("lib/foo/bar") do - expect(app_path).to match(%r{^/.*/config/app.rb$}) + expect(app_path.to_s).to match(%r{^/.*/config/app.rb$}) end end end end