[DRE-commits] [ruby-omniauth-openid] 02/04: Port tests to RSpec 3
Balasankar C
balasankarc-guest at moszumanska.debian.org
Mon Sep 7 21:09:55 UTC 2015
This is an automated email from the git hooks/post-receive script.
balasankarc-guest pushed a commit to branch master
in repository ruby-omniauth-openid.
commit fe8c1e861ec50992795cd9a36ff3ef687bf01da0
Author: Balasankar C <balasankarc at autistici.org>
Date: Tue Sep 8 02:30:26 2015 +0530
Port tests to RSpec 3
---
debian/patches/rspec3-port.patch | 45 ++++++++++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 46 insertions(+)
diff --git a/debian/patches/rspec3-port.patch b/debian/patches/rspec3-port.patch
new file mode 100644
index 0000000..994f68f
--- /dev/null
+++ b/debian/patches/rspec3-port.patch
@@ -0,0 +1,45 @@
+Description: Port tests to support RSpec3 syntax
+Author: Balasankar C <balasankarc at autistici.org>
+Last-Update: 2015-09-08
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/.rspec
++++ b/.rspec
+@@ -1,2 +1,2 @@
+ --color
+---format=nested
++--format=documentation
+--- a/spec/omniauth/strategies/open_id_spec.rb
++++ b/spec/omniauth/strategies/open_id_spec.rb
+@@ -22,15 +22,15 @@
+ end
+
+ it 'should respond with OK' do
+- last_response.should be_ok
++ expect(last_response).to be_ok
+ end
+
+ it 'should respond with HTML' do
+- last_response.content_type.should == 'text/html'
++ expect(last_response.content_type).to eq('text/html')
+ end
+
+ it 'should render an identifier URL input' do
+- last_response.body.should =~ %r{<input[^>]*openid_url}
++ expect(last_response.body).to match(%r{<input[^>]*openid_url})
+ end
+ end
+
+@@ -80,9 +80,9 @@
+ end
+
+ it 'it should redirect to invalid credentials' do
+- pending
+- last_response.should be_redirect
+- last_response.headers['Location'].should =~ %r{invalid_credentials}
++ skip
++ expect(last_response).to be_redirect
++ expect(last_response.headers['Location']).to match(%r{invalid_credentials})
+ end
+ end
+ end
diff --git a/debian/patches/series b/debian/patches/series
index 93f0321..ac1223c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
remove-simplecov.patch
+rspec3-port.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-omniauth-openid.git
More information about the Pkg-ruby-extras-commits
mailing list