Skip to content
Snippets Groups Projects
Commit 8a7a3f92 authored by Dylan Griffith's avatar Dylan Griffith
Browse files

Remove unnecessary @pushing_directory bool in QA::Factory::Repository::Push

parent ef04bd4e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -18,7 +18,6 @@ module QA
@commit_message = "This is a test commit"
@branch_name = 'master'
@new_branch = true
@pushing_directory = false
end
 
def remote_branch
Loading
Loading
@@ -29,7 +28,6 @@ module QA
raise "Must set directory as a Pathname" unless dir.is_a?(Pathname)
 
@directory = dir
@pushing_directory = true
end
 
def fabricate!
Loading
Loading
@@ -51,7 +49,7 @@ module QA
repository.checkout(branch_name)
end
 
if @pushing_directory
if @directory
@directory.each_child do |f|
repository.add_file(f.basename, f.read) if f.file?
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment