Sha256: 0ecf08c94800ed4e04df5e588db1856c74644de56541ba2231d724b33d6ed55c

Contents?: true

Size: 302 Bytes

Versions: 1

Compression:

Stored size: 302 Bytes

Contents

# encoding: UTF-8

module Mojito::Matchers
	
	module UrlScheme
		
		def SCHEME(scheme)
			proc do
				case scheme
				when :https, :secure
					request.scheme === 'https'
				when :http, nil
					request.scheme === 'http'
				else
					request.scheme === scheme.to_s
				end
			end
		end
		
	end
	
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mojito-0.1.1 lib/mojito/matchers/url_scheme.rb