test/lolcommits_test.rb in lolcommits-0.9.2 vs test/lolcommits_test.rb in lolcommits-0.9.3.pre1
- old
+ new
@@ -1,6 +1,5 @@
-# -*- encoding : utf-8 -*-
require 'coveralls'
Coveralls.wear!
require 'minitest/autorun'
@@ -17,10 +16,10 @@
#
# issue #53, https://github.com/mroth/lolcommits/issues/53
# this will test the permissions but only locally, important before building a gem package!
#
def test_permissions
- impact_perms = File.lstat(Lolcommits::Loltext::DEFAULT_FONT_PATH).mode & 0o777
+ impact_perms = File.lstat(Lolcommits::Plugin::Loltext::DEFAULT_FONT_PATH).mode & 0o777
imagesnap_perms = File.lstat(File.join(Configuration::LOLCOMMITS_ROOT, 'vendor', 'ext', 'imagesnap', 'imagesnap')).mode & 0o777
videosnap_perms = File.lstat(File.join(Configuration::LOLCOMMITS_ROOT, 'vendor', 'ext', 'videosnap', 'videosnap')).mode & 0o777
commandcam_perms = File.lstat(File.join(Configuration::LOLCOMMITS_ROOT, 'vendor', 'ext', 'CommandCam', 'CommandCam.exe')).mode & 0o777
assert impact_perms == 0o644 || impact_perms == 0o664,