[DRE-commits] [ruby-fast-gettext] 01/01: remove test that requires rspec3
Dmitry Borodaenko
angdraug at moszumanska.debian.org
Sat Oct 18 20:42:23 UTC 2014
This is an automated email from the git hooks/post-receive script.
angdraug pushed a commit to branch master
in repository ruby-fast-gettext.
commit b1ce3f735d68b29d223ce153a6b4888c3aaee186
Author: Dmitry Borodaenko <angdraug at gmail.com>
Date: Sat Oct 18 13:42:15 2014 -0700
remove test that requires rspec3
---
debian/changelog | 1 +
.../0006-remove-test-that-requires-rspec3.patch | 44 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 46 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 98c342f..e4c34c9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ ruby-fast-gettext (0.9.0-1) unstable; urgency=medium
* New upstream release.
* Standards-Version upgraded to 3.9.6, no changes required.
+ * 0006-remove-test-that-requires-rspec3.patch added.
-- Dmitry Borodaenko <angdraug at debian.org> Sat, 18 Oct 2014 12:05:29 -0700
diff --git a/debian/patches/0006-remove-test-that-requires-rspec3.patch b/debian/patches/0006-remove-test-that-requires-rspec3.patch
new file mode 100644
index 0000000..ac520f4
--- /dev/null
+++ b/debian/patches/0006-remove-test-that-requires-rspec3.patch
@@ -0,0 +1,44 @@
+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 2f90d94..e874ea1 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@
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