Sha256: 4a948a4228c374b2d45dc3e9e20b19539be5c1ff7de0094e8e3c7da0d2739dc0

Contents?: true

Size: 328 Bytes

Versions: 8

Compression:

Stored size: 328 Bytes

Contents

require_relative "../../../test_helper"
require "tempfile"

module Eye
  module Patch
    describe Settings do
      it "evaluates the yaml as ERB" do
        file = Tempfile.new("yaml")
        file.write("sum: <%= 1 + 2 %>")
        file.close
        assert_equal 3, Settings.new(file.path)[:sum]
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
eye-patch-0.3.0 test/lib/eye/patch/settings_test.rb
eye-patch-0.2.2 test/lib/eye/patch/settings_test.rb
eye-patch-0.2.1 test/lib/eye/patch/settings_test.rb
eye-patch-0.2.0 test/lib/eye/patch/settings_test.rb
eye-patch-0.1.8 test/lib/eye/patch/settings_test.rb
eye-patch-0.1.7 test/lib/eye/patch/settings_test.rb
eye-patch-0.1.6 test/lib/eye/patch/settings_test.rb
eye-patch-0.1.5 test/lib/eye/patch/settings_test.rb