Sha256: d3df3f61a7231ec7fb7f5b9730242b7a429d0b1c10c9282e62d165774f977fa6
Contents?: true
Size: 714 Bytes
Versions: 1
Compression:
Stored size: 714 Bytes
Contents
require 'fileutils' require 'pathname' require 'tmpdir' require_relative '../test_helper' require_relative '../../lib/signore/settings' require_relative '../../lib/signore/tags' module Signore describe Settings do describe '#action' do it 'is defined by the first argument' do _(Settings.new(['prego']).action).must_equal 'prego' end end describe '#tags' do it 'returns the forbidden and required tags' do tags = Tags.new(forbidden: %w[tech], required: %w[en]) _(Settings.new(%w[prego ~tech en]).tags).must_equal tags end it 'doesn’t blow up on empty args' do _(Settings.new([]).tags).must_equal Tags.new end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
signore-0.7.0 | test/signore/settings_test.rb |