[DRE-commits] [ruby-gitlab-emoji] 05/08: Update patch file
Sagar Ippalpalli
isaagar-guest at moszumanska.debian.org
Thu Mar 24 17:02:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
isaagar-guest pushed a commit to branch master
in repository ruby-gitlab-emoji.
commit af16cda47e3fc3399774b8f83f4bb332aa654da5
Author: Sagar Ippalpalli <i.vikram15 at gmail.com>
Date: Thu Mar 24 14:14:40 2016 +0530
Update patch file
---
debian/patches/1000_Rspec3_port.patch | 62 +++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
diff --git a/debian/patches/1000_Rspec3_port.patch b/debian/patches/1000_Rspec3_port.patch
new file mode 100644
index 0000000..4a25ba1
--- /dev/null
+++ b/debian/patches/1000_Rspec3_port.patch
@@ -0,0 +1,62 @@
+Description: Fix tests and port it to RSpec 3 syntax
+ One of the tests had an incorrect equality check. Also, tests used older Rspec
+ syntax. Fixed these two.
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2016-03-09
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/spec/gitlab_emoji_spec.rb
++++ b/spec/gitlab_emoji_spec.rb
+@@ -5,33 +5,33 @@
+ describe 'emojis' do
+ let(:emojis) { Emoji.emojis }
+
+- it { emojis.should be_a(Hash) }
+- it { emojis.size.should be >= 1700 }
++ it { expect(emojis).to be_a(Hash) }
++ it {expect(emojis.size).to be >= 1700 }
+ end
+
+ describe 'emojis_by_moji' do
+ let(:emojis) { Emoji.emojis_by_moji }
+
+- it { emojis.should be_a(Hash) }
+- it { emojis.size.should be_between(800, 1000) }
++ it {expect(emojis).to be_a(Hash)}
++ it {expect(emojis.size).to be_between(800, 1000).inclusive}
+ end
+
+ describe 'emojis_names' do
+ subject { Emoji.emojis_names }
+
+- it { should be_a(Array) }
+- it { should include ("+1") }
++ it {is_expected.to be_a(Array)}
++ it {is_expected.to include ("+1")}
+ end
+
+ describe 'emoji_filename' do
+ subject { Emoji.emoji_filename("+1") }
+
+- it { should eq("1F44D") }
++ it {is_expected.to eq("1F44D")}
+ end
+
+ describe 'images_path' do
+ it 'returns a valid path' do
+- expect(Dir.exist?(described_class.images_path)).to eq true
++ expect(Dir.exist?(described_class.images_path)).to be true
+ end
+ end
+ end
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -5,7 +5,7 @@
+ #
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
+ RSpec.configure do |config|
+- config.treat_symbols_as_metadata_keys_with_true_values = true
++# config.treat_symbols_as_metadata_keys_with_true_values = true
+ config.run_all_when_everything_filtered = true
+ config.filter_run :focus
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-gitlab-emoji.git
More information about the Pkg-ruby-extras-commits
mailing list