Sha256: 97e42b82df985755c74f25b2c1899a649433d29b8c216970db0f5675e6f0039c
Contents?: true
Size: 712 Bytes
Versions: 3
Compression:
Stored size: 712 Bytes
Contents
require 'test_setup' class ConfigTest < MiniTest::Unit::TestCase def test_setting_app_id IntercomRails.config.app_id = "1234" assert_equal IntercomRails.config.app_id, "1234" end def test_setting_current_user current_user = Proc.new { @blah } IntercomRails.config.current_user = current_user assert_equal IntercomRails.config.current_user, current_user end def test_setting_current_user_not_to_a_proc assert_raises ArgumentError do IntercomRails.config.current_user = 1 end end def test_configuring_intercom_with_block IntercomRails.config do |config| config.app_id = "4567" end assert_equal IntercomRails.config.app_id, "4567" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
intercom-rails-0.0.9 | test/intercom-rails/config_test.rb |
intercom-rails-0.0.8 | test/intercom-rails/config_test.rb |
intercom-rails-0.0.7 | test/intercom-rails/config_test.rb |