1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2024-10-27 02:33:19 +00:00

fix syntax for all tests

This commit is contained in:
Adrien Waksberg 2017-05-11 22:24:05 +02:00 committed by Adrien Waksberg
parent 72c213b7b7
commit f41a9e68d3
2 changed files with 2 additions and 7 deletions

View file

@ -6,9 +6,6 @@ require 'yaml'
class TestItem < Test::Unit::TestCase class TestItem < Test::Unit::TestCase
def setup def setup
@fixture_file = 'test/files/fixtures.yml'
@fixtures = YAML.load_file(@fixture_file)
if defined?(I18n.enforce_available_locales) if defined?(I18n.enforce_available_locales)
I18n.enforce_available_locales = false I18n.enforce_available_locales = false
end end
@ -16,7 +13,7 @@ class TestItem < Test::Unit::TestCase
I18n.load_path = Dir['./i18n/cli/*.yml'] I18n.load_path = Dir['./i18n/cli/*.yml']
I18n.default_locale = :en I18n.default_locale = :en
puts @fixtures = YAML.load_file('./test/files/fixtures.yml')
end end
def test_00_add_without_name def test_00_add_without_name

View file

@ -8,8 +8,6 @@ require 'csv'
class TestMPW < Test::Unit::TestCase class TestMPW < Test::Unit::TestCase
def setup def setup
fixture_file = './test/files/fixtures.yml'
wallet_file = 'default.gpg' wallet_file = 'default.gpg'
key = 'test@example.com' key = 'test@example.com'
password = 'password' password = 'password'
@ -19,7 +17,7 @@ class TestMPW < Test::Unit::TestCase
end end
@mpw = MPW::MPW.new(key, wallet_file, password) @mpw = MPW::MPW.new(key, wallet_file, password)
@fixtures = YAML.load_file(fixture_file) @fixtures = YAML.load_file('./test/files/fixtures.yml')
end end
def test_00_decrypt_empty_file def test_00_decrypt_empty_file