Sha256: 1a3d277e444c5644836c54347be0f8b5467bab2d6392224bdcee530837321490

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

require 'spec_helper'
require 'feed_file_examples'
require 'nvd/json_feeds/json_feed_file'

describe JSONFeedFile do
  let(:fixtures_dir) { File.expand_path('../fixtures',__FILE__)         }
  let(:path)         { File.join(fixtures_dir,'nvdcve-1.1-recent.json') }

  subject { described_class.new(path) }

  include_examples "FeedFile"

  describe "#read" do
    it "must read the contents of the json file" do
      expect(subject.read).to eq(File.read(path))
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nvd-json_feeds-0.1.0 spec/json_feed_file_spec.rb