Sha256: 54f814015f558baa079c4802ce2af43afe45657d95d8f43650577300117b36aa
Contents?: true
Size: 1.05 KB
Versions: 5
Compression:
Stored size: 1.05 KB
Contents
require 'spec_helper' require 'support/nokogiri_helper' module LiteXBRL describe TDnet do include NokogiriHelper let(:dir) { File.expand_path '../data/tdnet', __FILE__ } describe '.find_document' do context 'Summary' do it do document = TDnet.send :find_document, doc("#{dir}/summary.xbrl") expect(document).to eq(LiteXBRL::TDnet::Summary) end end context 'Summary2' do it do document = TDnet.send :find_document, doc("#{dir}/summary2.htm") expect(document).to eq(LiteXBRL::TDnet::Summary2) end end context 'ResultsForecast' do it do document = TDnet.send :find_document, doc("#{dir}/results_forecast.xbrl") expect(document).to eq(LiteXBRL::TDnet::ResultsForecast) end end context 'ResultsForecast2' do it do document = TDnet.send :find_document, doc("#{dir}/results_forecast2.htm") expect(document).to eq(LiteXBRL::TDnet::ResultsForecast2) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
litexbrl-0.1.3 | spec/tdnet_spec.rb |
litexbrl-0.1.2 | spec/tdnet_spec.rb |
litexbrl-0.1.1 | spec/tdnet_spec.rb |
litexbrl-0.1.0 | spec/tdnet_spec.rb |
litexbrl-0.0.3 | spec/tdnet_spec.rb |