fix tests
This commit is contained in:
parent
c5f6612844
commit
ddd738e1c8
3 changed files with 17 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
parseconfig-0.5.2.gem
|
||||
/parseconfig-1.0.2.gem
|
||||
/rubygem-parseconfig-1.0.2-tests.tgz
|
||||
|
|
|
|||
|
|
@ -8,6 +8,16 @@ Group: Development/Languages
|
|||
License: MIT
|
||||
URL: http://github.com/derks/ruby-parseconfig
|
||||
Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem
|
||||
|
||||
# For testing - per http://fedoraproject.org/wiki/Packaging:Ruby#Test_suites_not_included_in_the_package
|
||||
#
|
||||
# $ git clone git@github.com:derks/ruby-parseconfig.git
|
||||
# $ cd ruby-parseconfig
|
||||
# $ git checkout 1.0.2
|
||||
# $ tar -czf rubygem-parseconfig-1.0.2-tests.tgz tests/
|
||||
#
|
||||
Source1: %{gem_name}-%{version}-tests.tgz
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Requires: ruby(rubygems), ruby(abi) >= 1.8.6
|
||||
BuildRequires: rubygems-devel, rubygem-rspec
|
||||
|
|
@ -20,6 +30,8 @@ ParseConfig provides simple parsing of standard configuration files in the
|
|||
form of 'param = value'. It also supports nested [group] sections.
|
||||
|
||||
%prep
|
||||
%setup -q -D -T -n %{gem_name}-%{version}
|
||||
tar -xzf %{SOURCE1}
|
||||
|
||||
%build
|
||||
# pass, nothing to do
|
||||
|
|
@ -30,7 +42,9 @@ mkdir -p %{buildroot}%{gem_dir}
|
|||
gem install --local --install-dir %{buildroot}%{gem_dir} --force %{SOURCE0}
|
||||
|
||||
%check
|
||||
bash utils/run-tests.sh
|
||||
pushd tests
|
||||
rspec test_parseconfig.rb
|
||||
popd
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
58dac67900241ae0760666237dc2386c parseconfig-1.0.2.gem
|
||||
75e6f490e1653fcb27689f0331b7e39d rubygem-parseconfig-1.0.2-tests.tgz
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue