[DRE-commits] [ruby-factory-girl] 01/02: Fix tests

Balasankar C balasankarc-guest at moszumanska.debian.org
Mon Jan 11 20:21:58 UTC 2016


This is an automated email from the git hooks/post-receive script.

balasankarc-guest pushed a commit to branch master
in repository ruby-factory-girl.

commit 9bf8a5618bd8b00db316b3f570276fce18eadd0e
Author: Balasankar C <balasankarc at autistici.org>
Date:   Tue Jan 12 01:48:15 2016 +0530

    Fix tests
---
 debian/patches/fix-tests.patch | 24 ++++++++++++++++++++++++
 debian/patches/series          |  1 +
 2 files changed, 25 insertions(+)

diff --git a/debian/patches/fix-tests.patch b/debian/patches/fix-tests.patch
new file mode 100644
index 0000000..d751469
--- /dev/null
+++ b/debian/patches/fix-tests.patch
@@ -0,0 +1,24 @@
+Description: Fix tests
+ In the test spec/acceptance/callbacks_spec.rb, the first_name and last_name
+ attributes of User model are of type String. But the test (lines 97 and 101)
+ expects them to be integer 1, which is wrong.
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2016-01-11
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/spec/acceptance/callbacks_spec.rb
++++ b/spec/acceptance/callbacks_spec.rb
+@@ -94,11 +94,11 @@
+   end
+ 
+   it "works when the callback has one variable" do
+-    expect(FactoryGirl.build(:user).first_name).to eq 1
++    expect(FactoryGirl.build(:user).first_name).to eq "1"
+   end
+ 
+   it "works when the callback has two variables" do
+-    expect(FactoryGirl.create(:user).last_name).to eq 1
++    expect(FactoryGirl.create(:user).last_name).to eq "1"
+   end
+ end
+ 
diff --git a/debian/patches/series b/debian/patches/series
index ecc628c..ef23fc9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 remove-simplecov-rubygems-require.patch
 rspec3.patch
+fix-tests.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-factory-girl.git



More information about the Pkg-ruby-extras-commits mailing list