Skip to content

Commit

Permalink
Merge pull request #70 from pirj/return-a-pathname-from-the-file-helper
Browse files Browse the repository at this point in the history
Return a Pathname from the file helper
  • Loading branch information
adamstegman authored Dec 4, 2023
2 parents ad2bc97 + 7cddbd9 commit 95a2f22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def prepare_destination
end

def file relative
File.expand_path(relative, destination_root)
Pathname.new(File.expand_path(relative, destination_root))
end
def migration_file relative
file_path = file(relative)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module Ammeter::RSpec::Rails
FileUtils.mkdir path_to_gem_root_tmp
end
it 'should use destination to find relative root file' do
expect(group.file('app/model/post.rb')).to eq "#{path_to_gem_root_tmp}/app/model/post.rb"
expect(group.file('app/model/post.rb').to_path).to eq "#{path_to_gem_root_tmp}/app/model/post.rb"
end

describe 'migrations' do
Expand Down

0 comments on commit 95a2f22

Please sign in to comment.