Permalink
Browse files

Fix spec that depended on hash ordering

  • Loading branch information...
1 parent 0fefb9c commit 0e4edcfdf8ee5d8af71bd0862d05fc4fe1877ce9 @sferik sferik committed May 20, 2011
Showing with 2 additions and 3 deletions.
  1. +1 −1 oa-more/spec/omniauth/strategies/draugiem_spec.rb
  2. +1 −2 oa-more/spec/spec_helper.rb
@@ -17,7 +17,7 @@ def strategy
it 'should redirect to api.draugiem.lv' do
get '/auth/draugiem'
last_response.should be_redirect
- last_response.headers['Location'].should == "http://api.draugiem.lv/authorize/?app=123&redirect=http%3A%2F%2Fexample.org%2Fauth%2Fdraugiem%2Fcallback&hash=2d5698ba02ddd42c441998a5a2c2946b"
+ last_response.headers['Location'].should match %r{http://api\.draugiem\.lv/authorize/}
end
it 'should gather user data after success authorization' do
@@ -3,10 +3,9 @@
require 'rspec'
require 'rack/test'
require 'webmock/rspec'
-$:<<File.join(File.dirname(__FILE__),'../lib/')
require 'omniauth/more'
-Rspec.configure do |config|
+RSpec.configure do |config|
config.include Rack::Test::Methods
config.include WebMock::API
end

0 comments on commit 0e4edcf

Please sign in to comment.