Sha256: 3b7047b0d0ac054f97f305b3ea0667fac4e7ea00685350f362c14bf7edd2cbc2

Contents?: true

Size: 901 Bytes

Versions: 7

Compression:

Stored size: 901 Bytes

Contents

require 'active_support/all'
require 'faraday_middleware'
require 'her'
require 'ostruct'
require 'pry'
require 'simplecov'
require 'coveralls'

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
    SimpleCov::Formatter::HTMLFormatter,
    Coveralls::SimpleCov::Formatter
]

SimpleCov.start do
  add_filter '/spec/'
  add_filter '/features/'
end

require 'looksist'
require 'looksist/redis_service'
require 'looksist/hashed'
require 'looksist/safe_lru_cache'

module Her
  module Model
    def as_json(opts={})
      attributes
    end
  end
end

TEST_API = Her::API.new

config = Proc.new do |conn|
  conn.use FaradayMiddleware::EncodeJson
  conn.use Faraday::Request::UrlEncoded
  conn.use Her::Middleware::DefaultParseJSON
  conn.use Faraday::Adapter::NetHttp
  conn.use Faraday::Response::RaiseError
end

TEST_API.setup url: 'http://dummy.com', &config

RSpec.configure do |config|

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
looksist-0.2.6 spec/spec_helper.rb
looksist-0.2.5 spec/spec_helper.rb
looksist-0.2.4 spec/spec_helper.rb
looksist-0.2.3 spec/spec_helper.rb
looksist-0.2.2 spec/spec_helper.rb
looksist-0.2.1 spec/spec_helper.rb
looksist-0.2.0 spec/spec_helper.rb