Sha256: d1d4b066d7b35fc409a6dbb335e15c8fb3c7f42a8a6713daabd630e5ac001f7c

Contents?: true

Size: 566 Bytes

Versions: 11

Compression:

Stored size: 566 Bytes

Contents

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

11 entries across 11 versions & 1 rubygems

Version Path
slate-1.0.2 spec/spec_helper.rb
slate-1.0.1 spec/spec_helper.rb
slate-1.0.0 spec/spec_helper.rb
slate-0.2.1 spec/spec_helper.rb
slate-0.2.0 spec/spec_helper.rb
slate-0.1.0 spec/spec_helper.rb
slate-0.0.5 spec/spec_helper.rb
slate-0.0.4 spec/spec_helper.rb
slate-0.0.3 spec/spec_helper.rb
slate-0.0.2 spec/spec_helper.rb
slate-0.0.1 spec/spec_helper.rb