Sha256: ae2fa1cdc7c9f5f7e1a27b6c5b5081bb059ad3f46e4b9d7880ee2035ce5dcb5a
Contents?: true
Size: 517 Bytes
Versions: 6
Compression:
Stored size: 517 Bytes
Contents
require 'spec_helper.rb' require 'smallcage' describe "SmallCage::Commands::Import" do root = Pathname.new(SPEC_DATA_DIR) 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
6 entries across 6 versions & 1 rubygems