Sha256: ae009d52fa7377a5aa22d5bfb7e7bce571998903bf45e915155e9904d7572d34

Contents?: true

Size: 326 Bytes

Versions: 3

Compression:

Stored size: 326 Bytes

Contents

require 'test_helper'

class TestStrictReservedMethodsAsMethods < ConfigurationsTest
  def test_reserved_methods_not_allowed_as_methods
    assert_raises Configurations::ReservedMethodError do
      @module.class_eval do
        configuration_method :to_h do
          'h'
        end
      end

      setup
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
configurations-2.2.2 test/configurations/strict/test_reserved_methods_as_methods.rb
configurations-2.2.1 test/configurations/strict/test_reserved_methods_as_methods.rb
configurations-2.2.0 test/configurations/strict/test_reserved_methods_as_methods.rb