Sha256: d942b8defa3367df39a3cd3efbeaf30a207bd77ae4b469df062ba00f1d0b801c

Contents?: true

Size: 277 Bytes

Versions: 3

Compression:

Stored size: 277 Bytes

Contents

require 'test_helper'

class TestReservedMethods < ConfigurationsTest
  def test_raises_when_setup_with_reserved_methods
    assert_raises Configurations::ReservedMethodError do
      self.class.setup_with do |c|
        c.to_s = 'bla'
      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.rb
configurations-2.2.1 test/configurations/arbitrary/test_reserved_methods.rb
configurations-2.2.0 test/configurations/arbitrary/test_reserved_methods.rb