Sha256: d1cf59f4a5ef9bcbfc976ea881ade7add3eb70043747e70a28b182cf5c6d7e43

Contents?: true

Size: 499 Bytes

Versions: 7

Compression:

Stored size: 499 Bytes

Contents

require 'active_record'
require 'kaminari/grape'

require 'rrrspec'
require 'rrrspec/server'
require 'rrrspec/web/persistent_models'
require 'rrrspec/web/api'
require 'rrrspec/web/app'
require 'rrrspec/web/configuration'

RRRSpec.configuration = RRRSpec::Web::WebConfiguration.new
ActiveSupport::JSON::Encoding.time_precision = 0

module RRRSpec
  module Web
    def self.setup
      ActiveRecord::Base.establish_connection(
        **RRRSpec.configuration.persistence_db
      )
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rrrspec-web-0.4.6 lib/rrrspec/web.rb
rrrspec-web-0.4.5 lib/rrrspec/web.rb
rrrspec-web-0.4.4 lib/rrrspec/web.rb
rrrspec-web-0.4.3 lib/rrrspec/web.rb
rrrspec-web-0.4.2 lib/rrrspec/web.rb
rrrspec-web-0.4.1 lib/rrrspec/web.rb
rrrspec-web-0.4.0 lib/rrrspec/web.rb