Sha256: d98504fbc3e6fa7173955f34da3d04d763c0b7ed2bc55313bb19749d815b4b7b
Contents?: true
Size: 873 Bytes
Versions: 2
Compression:
Stored size: 873 Bytes
Contents
require File.join(File.dirname(__FILE__), 'support', 'spec_helper') require 'file_manager' describe FileManager, "swapping configuration" do let(:location) {"test"} before do @mvc = FileManager.new end it "should copy the web.config to web.original.config before replacing" do FileUtils.stubs(:mv).with("#{location}/web.systest.config", "#{location}/web.config") FileUtils.expects(:cp).with("#{location}/web.config", "#{location}/web.original.config").once @mvc.swap_configs(location, :systest) end it "should rename web.config for environment to web.config" do FileUtils.stubs(:cp).with("#{location}/web.config", "#{location}/web.original.config") FileUtils.expects(:mv).with("#{location}/web.systest.config", "#{location}/web.config").once @mvc.swap_configs(location, :systest) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dolphindeploy-0.0.3-universal-dotnet | spec/file_manager_spec.rb |
dolphindeploy-0.0.2-universal-dotnet | spec/file_manager_spec.rb |