Sha256: 47ad38ee08683010e1704cff60f428ef5ad0400f8d532d1b407fd2991d2b9ca4

Contents?: true

Size: 502 Bytes

Versions: 28

Compression:

Stored size: 502 Bytes

Contents

require 'test_helper'

module Workarea
  module Configuration
    class AdministrableOptionsTest < TestCase
      def test_method_missing
        instance = Admin.instance
        config = AdministrableOptions.new

        instance.update(email_to: 'test@workarea.com')
        assert_equal('test@workarea.com', config.email_to)

        config.email_to = 'other@workarea.com'
        assert_equal('other@workarea.com', config.email_to)

        assert_nil(config.fake_key)
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
workarea-core-3.5.6 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.5 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.4 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.3 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.2 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.1 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.0 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.0.beta.1 test/lib/workarea/configuration/configuration_test.rb