Sha256: 34fa494d1c7748bfbdb4d33179a0aacad2693f5a86529b047ce89216d3129162
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 KB
Contents
require 'test_helper' require 'stringio' require 'tmpdir' require 'fileutils' describe "puppetry" do before do @orig_stdout = $stdout $stdout = StringIO.new end after do $stdout = @orig_stdout end describe "version" do it "shows the application's version" do Puppetry::CLI.start(["version"]) $stdout.string.must_match(/#{Puppetry::VERSION}/) end end describe "new" do it "creates a new module starting from a scaffolded one" do Dir.mktmpdir do |dir| FileUtils.cd(dir) do Puppetry::CLI.start(["new", "test_module"]) # test_module should exist and not be empty assert Dir.exists?("test_module"), "Module folder test_module wasn't created" Dir.entries("test_module").wont_be_empty # test_module should contain at least the manifests folder Dir.entries("test_module").must_include "manifests" # test_module should not be a git repo (for the moment) Dir.entries("test_module").wont_include ".git" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppetry_toolbox-0.0.2 | test/end_to_end/puppetry_test.rb |
puppetry_toolbox-0.0.1 | test/end_to_end/puppetry_test.rb |