Sha256: 8ffaa938fb610224e837bbb679f9816355bd34403b0e4e3806f14eceace174a7

Contents?: true

Size: 555 Bytes

Versions: 2

Compression:

Stored size: 555 Bytes

Contents

require 'spec_helper'

module Synvert
  describe Snippet do
    let(:default_snippets_path) { File.join(File.dirname(__FILE__), '.synvert') }
    before { Core::Configuration.instance.set :default_snippets_path, default_snippets_path }
    after { FileUtils.rm_rf default_snippets_path }

    it 'git clones snippets' do
      Snippet.sync
      expect(File.exist?(default_snippets_path)).to be_true
    end

    it 'git pull snippets' do
      Snippet.sync
      Snippet.sync
      expect(File.exist?(default_snippets_path)).to be_true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
synvert-0.2.0 spec/synvert/snippet_spec.rb
synvert-0.1.1 spec/synvert/snippet_spec.rb