[DRE-commits] [ruby-orm-adapter] 03/04: add RSpec3 support
Cédric Boutillier
boutil at moszumanska.debian.org
Thu Aug 13 16:50:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-orm-adapter.
commit 9794a103af397cf459f180232823a3a48dfe84aa
Author: Cédric Boutillier <boutil at debian.org>
Date: Thu Aug 13 18:44:40 2015 +0200
add RSpec3 support
---
debian/patches/rspec3.patch | 39 +++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 40 insertions(+)
diff --git a/debian/patches/rspec3.patch b/debian/patches/rspec3.patch
new file mode 100644
index 0000000..1e02b74
--- /dev/null
+++ b/debian/patches/rspec3.patch
@@ -0,0 +1,39 @@
+Description: add basic RSpec3 support
+Author: Cédric Boutillier <boutil at debian.org>
+Bug: https://github.com/ianwhite/orm_adapter/pull/46
+Bug-Debian: https://bugs.debian.org/795119
+Last-Update: 2015-08-13
+
+--- a/spec/spec_helper.rb
++++ b/spec/spec_helper.rb
+@@ -1,5 +1,6 @@
+ require 'rubygems'
+ require 'rspec'
++require 'rspec/its'
+
+ $:.unshift(File.dirname(__FILE__) + '/../lib')
+
+--- a/spec/orm_adapter/base_spec.rb
++++ b/spec/orm_adapter/base_spec.rb
+@@ -43,8 +43,8 @@
+
+ describe "#valid_object?" do
+ it "determines whether an object is valid for the current model class" do
+- subject.send(:valid_object?, Object.new).should be_true
+- subject.send(:valid_object?, String.new).should be_false
++ subject.send(:valid_object?, Object.new).should be true
++ subject.send(:valid_object?, String.new).should be false
+ end
+ end
+
+--- a/spec/orm_adapter/example_app_shared.rb
++++ b/spec/orm_adapter/example_app_shared.rb
+@@ -222,7 +222,7 @@
+ describe "#destroy(instance)" do
+ it "should destroy the instance if it exists" do
+ user = create_model(user_class)
+- user_adapter.destroy(user).should be_true
++ user_adapter.destroy(user).should be true
+ user_adapter.get(user.id).should be_nil
+ end
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a47c924
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+rspec3.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-orm-adapter.git
More information about the Pkg-ruby-extras-commits
mailing list