Sha256: 03bebaa4a6d5739d1ee9cd758aa7d0a4dfc3688c45857db6d4decad92e999e25
Contents?: true
Size: 619 Bytes
Versions: 1
Compression:
Stored size: 619 Bytes
Contents
ENV['RACK_ENV'] = 'test' require 'rspec/core' require 'rack/test' require 'sinatra' require 'omniauth' class MyApplication < Sinatra::Base use Rack::Session::Cookie use OmniAuth::Strategies::Developer get '/' do 'Hello World' end end module RSpecMixin include Rack::Test::Methods def app MyApplication end end RSpec.configure do |config| config.include RSpecMixin config.expect_with :rspec do |expect| expect.syntax = :expect end end describe 'omniauth' do it 'works' do get '/' expect(last_response).to be_ok expect(last_response.body).to eq 'Hello World' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hashie-3.5.1 | spec/integration/omniauth/integration_spec.rb |