Skip to content

Commit

Permalink
Move footprint to db folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Joyce committed May 31, 2016
1 parent 405eafa commit fad4ddc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Empty file added db/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion lib/sql_footprint/sql_capturer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def serialized_statements
end

def filename
"footprint.#{database_name.split('/').last}.sql"
"db/footprint.#{database_name.split('/').last}.sql"
end
end
end
2 changes: 1 addition & 1 deletion spec/sql_footprint/sql_capturer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
end

it 'writes to db-specific filename' do
expect(File).to receive(:write).with("footprint.#{db_name}.sql", anything)
expect(File).to receive(:write).with("db/footprint.#{db_name}.sql", anything)
subject.write
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/sql_footprint_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
end

let(:statements) { described_class.capturers[':memory:'].statements }
let(:footprint_file_name) { 'footprint.:memory:.sql' }
let(:footprint_file_name) { './db/footprint.:memory:.sql' }

describe '.start' do
before do
Expand Down

0 comments on commit fad4ddc

Please sign in to comment.