Skip to content

Commit

Permalink
Merge pull request #201 from yast/popup_test
Browse files Browse the repository at this point in the history
fixed popup_test.rb, added test_helper.rb
  • Loading branch information
lslezak committed Mar 27, 2014
2 parents edcecc5 + 105c3c6 commit 7f3bf8c
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 9 deletions.
3 changes: 2 additions & 1 deletion library/general/test/Makefile.am
Expand Up @@ -2,9 +2,10 @@ TESTS = \
asciifile_test.rb \
linuxrc_test.rb \
hooks_test.rb \
os_release_test.rb \
popup_test.rb

TEST_EXTENSIONS = .rb
RB_LOG_COMPILER = rspec
VERBOSE = 1
EXTRA_DIST = $(TESTS)
EXTRA_DIST = $(TESTS) test_helper.rb
2 changes: 1 addition & 1 deletion library/general/test/asciifile_test.rb
@@ -1,6 +1,6 @@
#! /usr/bin/env rspec

ENV["Y2DIR"] = File.expand_path("../../src", __FILE__)
require File.expand_path("../test_helper.rb", __FILE__)

require "yast"
include Yast
Expand Down
2 changes: 1 addition & 1 deletion library/general/test/hooks_test.rb
@@ -1,6 +1,6 @@
#! /usr/bin/env rspec

ENV["Y2DIR"] = File.expand_path("../../src", __FILE__)
require File.expand_path("../test_helper.rb", __FILE__)

require "yast"

Expand Down
2 changes: 1 addition & 1 deletion library/general/test/linuxrc_test.rb
@@ -1,6 +1,6 @@
#! /usr/bin/rspec

ENV["Y2DIR"] = File.expand_path("../../src", __FILE__)
require File.expand_path("../test_helper.rb", __FILE__)

require "yast"
include Yast
Expand Down
4 changes: 1 addition & 3 deletions library/general/test/os_release_test.rb
@@ -1,8 +1,6 @@
#! /usr/bin/env rspec

top_srcdir = File.expand_path("../../../..", __FILE__)
inc_dirs = Dir.glob("#{top_srcdir}/library/*/src")
ENV["Y2DIR"] = inc_dirs.join(":")
require File.expand_path("../test_helper.rb", __FILE__)

require "yast"

Expand Down
2 changes: 1 addition & 1 deletion library/general/test/popup_test.rb
@@ -1,6 +1,6 @@
#! /usr/bin/env rspec

ENV["Y2DIR"] = File.expand_path("../../src", __FILE__)
require File.expand_path("../test_helper.rb", __FILE__)

require "yast"
include Yast
Expand Down
5 changes: 5 additions & 0 deletions library/general/test/test_helper.rb
@@ -0,0 +1,5 @@

top_srcdir = File.expand_path("../../../..", __FILE__)
inc_dirs = Dir.glob("#{top_srcdir}/library/*/src")
ENV["Y2DIR"] = inc_dirs.join(":")

6 changes: 6 additions & 0 deletions package/yast2.changes
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Mar 27 10:03:16 UTC 2014 - lslezak@suse.cz

- fixed popup_test
- 3.1.31

-------------------------------------------------------------------
Wed Mar 26 17:02:08 UTC 2014 - lslezak@suse.cz

Expand Down
2 changes: 1 addition & 1 deletion package/yast2.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2
Version: 3.1.30
Version: 3.1.31
Release: 0
URL: https://github.com/yast/yast-yast2

Expand Down

0 comments on commit 7f3bf8c

Please sign in to comment.