Sha256: 8d19c71d5c35b58c2c61d69cbd07c80b468e99663382dcab8054bd05904d5229

Contents?: true

Size: 1.58 KB

Versions: 2

Compression:

Stored size: 1.58 KB

Contents

# frozen_string_literal: true

require 'simplecov'
SimpleCov.start

require 'json'
require 'rspec/its'

require_relative '../lib/triviacrack/category_statistics'
require_relative '../lib/triviacrack/game'
require_relative '../lib/triviacrack/game_statistics'
require_relative '../lib/triviacrack/profile'
require_relative '../lib/triviacrack/question'
require_relative '../lib/triviacrack/session'
require_relative '../lib/triviacrack/user'

require_relative '../lib/triviacrack/api/client'
require_relative '../lib/triviacrack/api/game'
require_relative '../lib/triviacrack/api/login'
require_relative '../lib/triviacrack/api/profile'
require_relative '../lib/triviacrack/api/question'
require_relative '../lib/triviacrack/api/user'

require_relative '../lib/triviacrack/errors/parse_error'
require_relative '../lib/triviacrack/errors/request_error'

require_relative '../lib/triviacrack/parsers/category_statistics_parser'
require_relative '../lib/triviacrack/parsers/game_parser'
require_relative '../lib/triviacrack/parsers/game_statistics_parser'
require_relative '../lib/triviacrack/parsers/profile_parser'
require_relative '../lib/triviacrack/parsers/question_parser'
require_relative '../lib/triviacrack/parsers/session_parser'
require_relative '../lib/triviacrack/parsers/user_parser'

class SpecData
  def self.get(filename)
    File.read(File.expand_path("../data/#{filename}", __FILE__))
  end

  def self.get_json(filename)
    file = File.read(File.expand_path("../data/#{filename}", __FILE__))
    JSON.parse(file)
  end
end

class APIStub
  def initialize(session = nil)
    @session = session
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
triviacrack-0.8.0 spec/spec_helper.rb
triviacrack-0.7.0 spec/spec_helper.rb