From 880fdd0ba7a6a65af9d8b2d700a80c8e414cb65d Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Tue, 24 May 2022 10:54:20 +0300 Subject: [PATCH] Common: move file with tests for printf --- pkgs/ruby/spec/lib/kernaux/sprintf_spec.rb | 4 +++- {pkgs/ruby/spec/lib/kernaux => tests}/printf.yml | 0 2 files changed, 3 insertions(+), 1 deletion(-) rename {pkgs/ruby/spec/lib/kernaux => tests}/printf.yml (100%) diff --git a/pkgs/ruby/spec/lib/kernaux/sprintf_spec.rb b/pkgs/ruby/spec/lib/kernaux/sprintf_spec.rb index 12be61b..d7aa771 100644 --- a/pkgs/ruby/spec/lib/kernaux/sprintf_spec.rb +++ b/pkgs/ruby/spec/lib/kernaux/sprintf_spec.rb @@ -11,7 +11,9 @@ RSpec.describe KernAux, '.sprintf' do it { is_expected.to eq 'Hello, World!' } context 'using original tests' do - YAML.safe_load_file(File.expand_path('printf.yml', __dir__)).each do |test| + printf_yml = File.expand_path('../../../../../tests/printf.yml', __dir__) + + YAML.safe_load_file(printf_yml).each do |test| expected = test['result'] args = test['args'] diff --git a/pkgs/ruby/spec/lib/kernaux/printf.yml b/tests/printf.yml similarity index 100% rename from pkgs/ruby/spec/lib/kernaux/printf.yml rename to tests/printf.yml