[DRE-commits] [ruby-fast-gettext] 04/10: Re-allow tests needing RSpec 3 and bump Build-Depends
Jérémy Bobbio
lunar at moszumanska.debian.org
Sat Sep 12 19:15:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository ruby-fast-gettext.
commit f991e595414fdfe2d8a940afda6359ea5cc11646
Author: Jérémy Bobbio <lunar at debian.org>
Date: Sat Sep 12 20:53:05 2015 +0200
Re-allow tests needing RSpec 3 and bump Build-Depends
---
debian/control | 2 +-
.../0006-remove-test-that-requires-rspec3.patch | 44 ----------------------
debian/patches/series | 1 -
3 files changed, 1 insertion(+), 46 deletions(-)
diff --git a/debian/control b/debian/control
index 50281e2..c62ae58 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: ruby
Priority: optional
Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
Uploaders: Dmitry Borodaenko <angdraug at debian.org>
-Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-rspec, ruby-activerecord, ruby-sqlite3, ruby-i18n, ruby-protected-attributes
+Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), ruby-rspec (>= 3), ruby-activerecord, ruby-sqlite3, ruby-i18n, ruby-protected-attributes
Standards-Version: 3.9.6
Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-fast-gettext.git
Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-fast-gettext.git;a=summary
diff --git a/debian/patches/0006-remove-test-that-requires-rspec3.patch b/debian/patches/0006-remove-test-that-requires-rspec3.patch
deleted file mode 100644
index ac520f4..0000000
--- a/debian/patches/0006-remove-test-that-requires-rspec3.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From: Dmitry Borodaenko <angdraug at gmail.com>
-Date: Sat, 18 Oct 2014 13:32:06 -0700
-Subject: remove test that requires rspec3
-
-This test uses failure_message method that is only available in
-rspec-expectations >= 3.0.0. Once RSpec 3 is packaged for Debian, this
-patch should be removed.
----
- .../fast_gettext/translation_repository/db_spec.rb | 22 ----------------------
- 1 file changed, 22 deletions(-)
-
-diff --git a/spec/fast_gettext/translation_repository/db_spec.rb b/spec/fast_gettext/translation_repository/db_spec.rb
-index b07020d..fc64d18 100644
---- a/spec/fast_gettext/translation_repository/db_spec.rb
-+++ b/spec/fast_gettext/translation_repository/db_spec.rb
-@@ -84,28 +84,6 @@ describe FastGettext::TranslationRepository::Db do
- }.should change{ TranslationKey.count }.by(-1)
- end
-
-- it "model attributes should be accessible" do
-- key = TranslationKey.new(:key => 'New Key', :translations_attributes => { '0' => {:text => 'New Key En', :locale => 'en'}})
--
-- key.key.should == 'New Key'
--
-- key.should be_accessible(:key)
-- key.should be_accessible(:translations)
-- key.should be_accessible(:translations_attributes)
-- key.should_not be_accessible(:created_at)
--
-- translation = key.translations.first
--
-- translation.text.should == 'New Key En'
-- translation.locale.should == 'en'
--
-- translation.should be_accessible(:locale)
-- translation.should be_accessible(:text)
-- translation.should be_accessible(:translation_key)
-- translation.should be_accessible(:translation_key_id)
-- translation.should_not be_accessible(:created_at)
-- end
--
- it "expires the cache when updated" do
- FastGettext.should_receive(:expire_cache_for).with('car')
- translation_text = create_translation 'car', 'Auto'
diff --git a/debian/patches/series b/debian/patches/series
index e874ea1..2f90d94 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,4 +3,3 @@
0003-fix-tests-with-ruby-calls.patch
0004-Properly-handle-PO-files-encoding-in-PoFile.to_mo_fi.patch
0005-remove-bogus-tests.patch
-0006-remove-test-that-requires-rspec3.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-fast-gettext.git
More information about the Pkg-ruby-extras-commits
mailing list