Sha256: 70cec06ca96dbb6a58fd04397ab167a705b71703680ac4cc7f893e3590882d2e

Contents?: true

Size: 443 Bytes

Versions: 12

Compression:

Stored size: 443 Bytes

Contents

class Nanoc::Extra::Checking::DSLTest < Nanoc::TestCase
  def test_from_file
    with_site do |_site|
      File.open('Checks', 'w') { |io| io.write("check :foo do\n\nend\ndeploy_check :bar\n") }
      dsl = Nanoc::Extra::Checking::DSL.from_file('Checks')

      # One new check
      refute Nanoc::Extra::Checking::Check.named(:foo).nil?

      # One check marked for deployment
      assert_equal [:bar], dsl.deploy_checks
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
nanoc-4.1.0rc2 test/extra/checking/test_dsl.rb
nanoc-4.1.0rc1 test/extra/checking/test_dsl.rb
nanoc-4.1.0b1 test/extra/checking/test_dsl.rb
nanoc-4.1.0a1 test/extra/checking/test_dsl.rb
nanoc-4.0.2 test/extra/checking/test_dsl.rb
nanoc-4.0.1 test/extra/checking/test_dsl.rb
nanoc-4.0.0 test/extra/checking/test_dsl.rb
nanoc-4.0.0rc3 test/extra/checking/test_dsl.rb
nanoc-4.0.0rc2 test/extra/checking/test_dsl.rb
nanoc-4.0.0rc1 test/extra/checking/test_dsl.rb
nanoc-4.0.0b4 test/extra/checking/test_dsl.rb
nanoc-4.0.0b3 test/extra/checking/test_dsl.rb