Sha256: 36fb21e9758941b25227a6256c45502a15dce775a233900f66f962caf4691cf1
Contents?: true
Size: 603 Bytes
Versions: 4
Compression:
Stored size: 603 Bytes
Contents
require 'coveralls' Coveralls.wear! require "slate" require "webmock/rspec" require "mocha_standalone" require "uri" require "cgi" RSpec.configure do |config| # Use color in STDOUT config.color_enabled = true # Use color not only in STDOUT but also in pagers and files config.tty = true # Use the specified formatter config.formatter = :documentation # :progress, :html, :textmate config.mock_framework = :mocha end def query(url) CGI.parse(URI.parse(url).query).inject({}) do |h, x| key = x.first val = x.last h[key] = val.size == 1 ? val.first : val h end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
slate-1.1.2 | spec/spec_helper.rb |
slate-1.1.1 | spec/spec_helper.rb |
slate-1.1.0 | spec/spec_helper.rb |
slate-1.0.3 | spec/spec_helper.rb |