Sha256: c4006571bca3cf9ea0831e20e9c0b3552174f96016cc4deb136d2e34cb01f71e

Contents?: true

Size: 766 Bytes

Versions: 17

Compression:

Stored size: 766 Bytes

Contents

require 'spec_helper'

describe Daengine::DigitalAssetProcessor do
  before { Daengine.configure(:assets_path => 'c:/dev/rails/da_gem/spec/mock_data')}
  context "process_tuple_directory" do
    it 'processes only files modified in the last 2 days' do
      # process all the files in the mock dir
      expect { process_tuple_directory }.to change(DigitalAsset.count).by(1)
      # modify the first 2 files in test-data directory to have updated times
      FileUtils.touch '../mock_data/selective-ssc_2012_05_18_13_48_03_publish.xml'
      # FileUtils.touch 'mock_data/selective-ssc_2012_05_18_13_56_18_unpublish.xml'
      # re-process the updated files
      expect { process_tuple_directory }.to change(DigitalAsset.count).by(1)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
daengine-0.2.1 spec/lib/digital_asset_processor_spec.rb
daengine-0.2.0 spec/lib/digital_asset_processor_spec.rb
daengine-0.1.9 spec/lib/digital_asset_processor_spec.rb
daengine-0.1.8 spec/lib/digital_asset_processor_spec.rb
daengine-0.1.7 spec/lib/digital_asset_processor_spec.rb
daengine-0.1.6 spec/lib/digital_asset_processor_spec.rb
daengine-0.1.5 spec/lib/digital_asset_processor_spec.rb
daengine-0.1.4 spec/lib/digital_asset_processor_spec.rb
daengine-0.1.3 spec/lib/digital_asset_processor_spec.rb
daengine-0.1.2 spec/lib/digital_asset_processor_spec.rb
daengine-0.1.1 spec/lib/digital_asset_processor_spec.rb
daengine-0.1.0 spec/lib/digital_asset_processor_spec.rb
daengine-0.0.10.alpha spec/lib/digital_asset_processor_spec.rb
daengine-0.0.9.alpha spec/lib/digital_asset_processor_spec.rb
daengine-0.0.8.alpha spec/lib/digital_asset_processor_spec.rb
daengine-0.0.7.alpha spec/lib/digital_asset_processor_spec.rb
daengine-0.0.6.alpha spec/lib/digital_asset_processor_spec.rb