spec/lib/git_spec.rb in tetra-0.40.0 vs spec/lib/git_spec.rb in tetra-0.41.0
- old
+ new
@@ -33,11 +33,11 @@
# check that gitignore files are moved correctly
File.open(".gitignore", "w") do |file|
file.write "file1o"
end
- @git.commit_whole_directory("test", "test")
+ @git.commit_whole_directory("test", :test)
files = `git ls-tree --name-only -r HEAD`.split("\n")
expect(files).to include("file1")
expect(files).to include(".gitignore_disabled_by_tetra")
@@ -50,19 +50,19 @@
Dir.chdir(@git_path) do
File.open("file1", "w") do |file|
file.write "test"
end
- @git.commit_whole_directory("test", "test")
+ @git.commit_whole_directory("test", :test_start)
File.open("file2", "w") do |file|
file.write "test"
end
- @git.commit_whole_directory("test end")
+ @git.commit_whole_directory("test end", :test_end)
- files = @git.changed_files_since("test")
+ files = @git.changed_files_since(:test_start)
expect(files).not_to include("file1")
expect(files).to include("file2")
end
end
@@ -73,28 +73,28 @@
Dir.chdir(@git_path) do
File.open("file1", "w") do |file|
file.write "test"
end
- @git.commit_whole_directory("test", "test_start")
+ @git.commit_whole_directory("test", :test_start)
File.open("file2", "w") do |file|
file.write "test"
end
Dir.mkdir("subdir")
File.open(File.join("subdir", "file3"), "w") do |file|
file.write "test"
end
- @git.commit_whole_directory("test", "test_end")
+ @git.commit_whole_directory("test", :test_end)
File.open("file4", "w") do |file|
file.write "test"
end
- @git.commit_whole_directory("test")
+ @git.commit_whole_directory("test", :test_after)
- files = @git.changed_files_between("test_start", "test_end", "subdir")
+ files = @git.changed_files_between(:test_start, :test_end, "subdir")
expect(files).not_to include("file1")
expect(files).not_to include("file2")
expect(files).to include("subdir/file3")
expect(files).not_to include("file4")