From b7f4dfb3a5db1c0df58cfb1a357f9651a7a1fb9f Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Mon, 22 Jul 2019 13:36:25 +0200 Subject: Use the fixture repo in the test environment Signed-off-by: Hans de Graaff --- config/environments/test.rb | 2 ++ test/fixtures/repo/profiles/repo_name | 1 + test/fixtures/repo/profiles/use.desc | 2 ++ 3 files changed, 5 insertions(+) create mode 100644 test/fixtures/repo/profiles/repo_name create mode 100644 test/fixtures/repo/profiles/use.desc diff --git a/config/environments/test.rb b/config/environments/test.rb index 1c19f08..2eae20e 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -40,3 +40,5 @@ Rails.application.configure do # Raises error for missing translations # config.action_view.raise_on_missing_translations = true end + +KKULEOMI_PORTDIR = Rails.root.join('test', 'fixtures', 'repo') diff --git a/test/fixtures/repo/profiles/repo_name b/test/fixtures/repo/profiles/repo_name new file mode 100644 index 0000000..e448b2d --- /dev/null +++ b/test/fixtures/repo/profiles/repo_name @@ -0,0 +1 @@ +packages-test diff --git a/test/fixtures/repo/profiles/use.desc b/test/fixtures/repo/profiles/use.desc new file mode 100644 index 0000000..111e4d1 --- /dev/null +++ b/test/fixtures/repo/profiles/use.desc @@ -0,0 +1,2 @@ +test - Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently) + -- cgit v1.2.3-65-gdbad