File: yaml_test.rb

package info (click to toggle)
gem2deb 2.2.6
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,228 kB
  • sloc: ruby: 5,562; sh: 140; perl: 46; ansic: 33; makefile: 31
file content (26 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require_relative '../test_helper'
require 'gem2deb/yaml'

class Gem2DebYamlTest < Gem2DebTestCase

  def sample(f)
    File.join(SAMPLE_DIR, 'yaml_gemspecs', f)
  end

  should 'load gemspec' do
    Gem2Deb::YAML.load_gemspec(sample('ruby-sigar.yml'))
  end

  should 'load gemspec with aliases' do
    Gem2Deb::YAML.load_gemspec(sample('ruby-bert.yml'))
  end

  should 'load gemspec using Gem::Version::Requirement' do
    Gem2Deb::YAML.load_gemspec(sample('ruby-metaid.yml'))
  end

  should 'load gemspec using Date' do
    Gem2Deb::YAML.load_gemspec(sample('ruby-text-format.yml'))
  end

end