Skip to content

Commit

Permalink
Merge pull request #758 from Anirudh-Gupta/master
Browse files Browse the repository at this point in the history
fixed 'it' statements under file_test
  • Loading branch information
chris-rock committed May 16, 2016
2 parents 9980809 + 4a9d9a4 commit b6c2f16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/resources/file_test.rb
Expand Up @@ -123,7 +123,7 @@ def shared_file_permission_tests(method_under_test)
resource.send(:check_file_permission_by_user, 'user', 'flag').must_equal(true)
end

it 'returns true when the cmd exits non-zero' do
it 'returns false when the cmd exits non-zero' do
MockLoader.mock_command(resource, 'su -s /bin/sh -c "test -flag /fakepath/fakefile" user', exit_status: 1)
resource.send(:check_file_permission_by_user, 'user', 'flag').must_equal(false)
end
Expand All @@ -144,7 +144,7 @@ def shared_file_permission_tests(method_under_test)
resource.send(:check_file_permission_by_user, 'user', 'flag').must_equal(true)
end

it 'returns true when the cmd exits non-zero' do
it 'returns false when the cmd exits non-zero' do
MockLoader.mock_command(resource, 'sudo -u user test -flag /fakepath/fakefile', exit_status: 1)
resource.send(:check_file_permission_by_user, 'user', 'flag').must_equal(false)
end
Expand Down

0 comments on commit b6c2f16

Please sign in to comment.