Sha256: 18f98dce9769f490ef3ee91b6d5739b85a22fd9be56df222bee0f655525dc8ae

Contents?: true

Size: 611 Bytes

Versions: 5

Compression:

Stored size: 611 Bytes

Contents

require "spec_helper"

describe Fontcustom::Manifest do
  context "#initialize" do
    it "should create a manifest file and assign :options", :integration => true do
      live_test do |testdir|
        capture(:stdout) do
          manifest = File.join testdir, ".fontcustom-manifest.json"
          options = Fontcustom::Options.new(:manifest => manifest, :input => "vectors").options
          Fontcustom::Manifest.new manifest, options
        end
        content = File.read File.join(testdir, ".fontcustom-manifest.json")
        content.should match(/"options":.+"input":/m)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fontcustom-1.3.3 spec/fontcustom/manifest_spec.rb
fontcustom-1.3.2 spec/fontcustom/manifest_spec.rb
fontcustom-1.3.1 spec/fontcustom/manifest_spec.rb
fontcustom-1.3.0 spec/fontcustom/manifest_spec.rb
fontcustom-1.3.0.beta4 spec/fontcustom/manifest_spec.rb