Skip to content

Commit c07feb8

Browse files
Small refactorings for saml_spec
1 parent f82193a commit c07feb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/omniauth/strategies/saml_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
end
77
end
88

9-
def post_xml(xml = :example_response, opts = {})
10-
post "/auth/saml/callback", opts.merge({'SAMLResponse' => load_xml(xml)})
11-
end
12-
139
describe OmniAuth::Strategies::SAML, :type => :strategy do
1410
include OmniAuth::Test::StrategyTestCase
1511

@@ -122,6 +118,10 @@ def post_xml(xml = :example_response, opts = {})
122118

123119
let(:xml) { :example_response }
124120

121+
def post_xml(xml = :example_response, opts = {})
122+
post "/auth/saml/callback", opts.merge({'SAMLResponse' => load_xml(xml)})
123+
end
124+
125125
before :each do
126126
allow(Time).to receive(:now).and_return(Time.utc(2012, 11, 8, 20, 40, 00))
127127
end

0 commit comments

Comments
 (0)