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.27 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.26 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.25 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.23 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.22 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.21 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.20 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.19 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.18 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.17 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.16 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.15 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.14 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.13 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.12 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.11 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.10 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.9 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.8 test/lib/workarea/configuration/configuration_test.rb
workarea-core-3.5.7 test/lib/workarea/configuration/configuration_test.rb