Sha256: 7de4b1d2c739b5511a29d36efad78ed5d0cef1eed9408ef89b02e526d7bb0cec

Contents?: true

Size: 329 Bytes

Versions: 3

Compression:

Stored size: 329 Bytes

Contents

require 'test_helper'

class TestArbitraryReservedMethodsAsMethods < 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/arbitrary/test_reserved_methods_as_methods.rb
configurations-2.2.1 test/configurations/arbitrary/test_reserved_methods_as_methods.rb
configurations-2.2.0 test/configurations/arbitrary/test_reserved_methods_as_methods.rb