Sha256: 0e81a48d5f5c0ef684a238916d0d4a43584e804caf55bb0be7b82a99e479cfd5
Contents?: true
Size: 599 Bytes
Versions: 24
Compression:
Stored size: 599 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require 'fig/os' require 'fig/windows' # Only run on Windows... if Fig::OS.windows? describe "Fig on Windows" do it "batch script should exist" do Fig::Windows.with_generated_batch_script(["echo", "Hello World"]) do |filename| File.exist?(filename).should == true end end it "batch script should say 'Hello World' when executed" do Fig::Windows.with_generated_batch_script(["echo", "Hello World"]) do |filename| %x[#{filename}].should == "Hello World\n" end end end end
Version data entries
24 entries across 24 versions & 1 rubygems