Sha256: cf361ac55ed9ef23dd3237fe1f8c0fe57002a454201f193f31d29b8265ea466a
Contents?: true
Size: 553 Bytes
Versions: 2
Compression:
Stored size: 553 Bytes
Contents
require 'spec_helper.rb' require 'smallcage' describe "SmallCage::Commands::Import" do root = Pathname.new(File.dirname(__FILE__) + "/data") it "should import default project" do tmpdir = root + "tmp" Dir.mkdir(tmpdir) unless tmpdir.directory? opts = { :command => "import", :from => "default", :to => tmpdir.to_s, :quiet => true } SmallCage::Runner.run(opts) (tmpdir + "_smc").directory?.should be_true (tmpdir + "_smc/helpers/base_helper.rb").file?.should be_true FileUtils.rm_r(tmpdir) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smallcage-0.2.4 | spec/import_spec.rb |
smallcage-0.2.3 | spec/import_spec.rb |