From f41a9e68d32f9ec3651a9690310a3552da679512 Mon Sep 17 00:00:00 2001 From: Adrien Waksberg Date: Thu, 11 May 2017 22:24:05 +0200 Subject: [PATCH] fix syntax for all tests --- test/test_item.rb | 5 +---- test/test_mpw.rb | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/test/test_item.rb b/test/test_item.rb index 961834e..4b0cf1b 100644 --- a/test/test_item.rb +++ b/test/test_item.rb @@ -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 diff --git a/test/test_mpw.rb b/test/test_mpw.rb index dd005ca..2877d19 100644 --- a/test/test_mpw.rb +++ b/test/test_mpw.rb @@ -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