Skip to content

adding boolean functions for git status #348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 7, 2018
Prev Previous commit
Next Next commit
More of the same
  • Loading branch information
perlun authored Feb 28, 2018
commit fb4ba018c3415aa44dffe3e028350d83d3e3f71c
6 changes: 3 additions & 3 deletions tests/units/test_status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_changed_boolean
update_file('test_dot_files_status/test_file_1', 'update_content tets_file_1')

assert(git.status.changed?('test_file_1'))
assert !git.status.changed?('test_file_2')
assert(!git.status.changed?('test_file_2'))
end
end

Expand All @@ -67,7 +67,7 @@ def test_deleted_boolean
delete_file('test_dot_files_status/test_file_1')

assert(git.status.deleted?('test_file_1'))
assert !git.status.deleted?('test_file_2')
assert(!git.status.deleted?('test_file_2'))
end
end

Expand All @@ -80,7 +80,7 @@ def test_untracked_boolean
git.add('test_file_2')

assert(git.status.untracked?('test_file_1'))
assert !git.status.untracked?('test_file_2')
assert(!git.status.untracked?('test_file_2'))
end
end
end