Sha256: 3fc675cba2fd4108721c5d4085a1aa7f3fa2a82221b620fadda38e8afb9741c1

Contents?: true

Size: 707 Bytes

Versions: 1

Compression:

Stored size: 707 Bytes

Contents

require 'test_helper'

class CookieTrackerTest < ActiveSupport::TestCase
  test "initialize_cookie_tracker method should be included in ActionController::Base" do
    assert_includes ApplicationController.instance_methods, :initialize_cookie_tracker
  end
  
  test "initialize_session_tracker method should be included in ActionController::Base" do
    assert_includes ApplicationController.instance_methods, :initialize_session_tracker
  end
  
  test "configuration settings in application.rb should be set correctly" do
    assert_equal CookieTracker.configuration[:cookie_expire_date].to_date, 1.year.from_now.to_date
    assert_equal CookieTracker.configuration[:custom_domain], 'localhost'
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cookie_tracker-1.2.0 test/cookie_tracker_test.rb