Sha256: 1000f225bb4e2edc401a22f58cad2ddbbec183bca12eceecc4ba5220e254ec16
Contents?: true
Size: 772 Bytes
Versions: 1
Compression:
Stored size: 772 Bytes
Contents
require 'spec_helper' describe WebTranslateIt::Safe::Svndump do def def_config { options: 'OPTS', repo_path: 'bar/baz' } end def svndump(id = :foo, config = def_config) WebTranslateIt::Safe::Svndump.new(id, WebTranslateIt::Safe::Config::Node.new(nil, config)) end before(:each) do stub(Time).now.stub!.strftime { 'NOW' } end after(:each) { WebTranslateIt::Safe::TmpFile.cleanup } describe :backup do before(:each) do @svn = svndump end { id: 'foo', kind: 'svndump', extension: '.svn', filename: 'svndump-foo.NOW', command: 'svnadmin dump OPTS bar/baz' }.each do |k, v| it "sets #{k} to #{v}" do @svn.backup.send(k).should == v end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webtranslateit-safe-0.4.0 | spec/webtranslateit/safe/svndump_spec.rb |