Sha256: 293ff47e694677854816ddbce2b8a1239e313def3f815017a0e4054e1b9b5506

Contents?: true

Size: 458 Bytes

Versions: 1

Compression:

Stored size: 458 Bytes

Contents

require 'simplecov'
require 'coveralls'

SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]

SimpleCov.start

require 'stock_index'

def fixture_path
  File.expand_path('../fixtures', __FILE__)
end

def fixture(symbol)
  File.new(fixture_path + '/' + file(symbol))
end

def file(symbol)
  md = /\^(\w+)/.match(symbol)
  "#{md[1]}.yaml"
end

def components_from_fixture(symbol)
  YAML::load_file(fixture(symbol))
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stock_index-0.6.0 spec/helper.rb