mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-20 01:50:04 +00:00
fix syntax for all tests
This commit is contained in:
parent
72c213b7b7
commit
f41a9e68d3
2 changed files with 2 additions and 7 deletions
|
@ -6,9 +6,6 @@ require 'yaml'
|
|||
|
||||
class TestItem < Test::Unit::TestCase
|
||||
def setup
|
||||
@fixture_file = 'test/files/fixtures.yml'
|
||||
@fixtures = YAML.load_file(@fixture_file)
|
||||
|
||||
if defined?(I18n.enforce_available_locales)
|
||||
I18n.enforce_available_locales = false
|
||||
end
|
||||
|
@ -16,7 +13,7 @@ class TestItem < Test::Unit::TestCase
|
|||
I18n.load_path = Dir['./i18n/cli/*.yml']
|
||||
I18n.default_locale = :en
|
||||
|
||||
puts
|
||||
@fixtures = YAML.load_file('./test/files/fixtures.yml')
|
||||
end
|
||||
|
||||
def test_00_add_without_name
|
||||
|
|
|
@ -8,8 +8,6 @@ require 'csv'
|
|||
|
||||
class TestMPW < Test::Unit::TestCase
|
||||
def setup
|
||||
fixture_file = './test/files/fixtures.yml'
|
||||
|
||||
wallet_file = 'default.gpg'
|
||||
key = 'test@example.com'
|
||||
password = 'password'
|
||||
|
@ -19,7 +17,7 @@ class TestMPW < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
@mpw = MPW::MPW.new(key, wallet_file, password)
|
||||
@fixtures = YAML.load_file(fixture_file)
|
||||
@fixtures = YAML.load_file('./test/files/fixtures.yml')
|
||||
end
|
||||
|
||||
def test_00_decrypt_empty_file
|
||||
|
|
Loading…
Add table
Reference in a new issue