Sha256: 213e52396471cf6f168130834192e547aead7556839db1cfb5c5cab0faa1fd2d

Contents?: true

Size: 497 Bytes

Versions: 2

Compression:

Stored size: 497 Bytes

Contents

require_relative 'minitest_helper'

class TestFetchLocalFileIntegration < MiniTest::Unit::TestCase
  def subject
    Annal::Fetch::LocalFile
  end

  def test_fetch
    read = subject.new("#{Annal.project_root}/test/test.json").read
    assert_match 'development_environment', read
  end

  def test_double_read
    fetch = subject.new("#{Annal.project_root}/test/test.json")
    assert_match 'development_environment', fetch.read
    assert_match 'development_environment', fetch.read
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
annal-0.0.4 test/fetch_file_integration_spec.rb
annal-0.0.3 test/fetch_file_integration_spec.rb