diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit_tests/exclusion_test.coffee | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/tests/unit_tests/exclusion_test.coffee b/tests/unit_tests/exclusion_test.coffee index f53d23f6..06e0a51f 100644 --- a/tests/unit_tests/exclusion_test.coffee +++ b/tests/unit_tests/exclusion_test.coffee @@ -29,7 +29,7 @@ isEnabledForUrl = (request) ->  context "Excluded URLs and pass keys",    setup -> -    Exclusions.postUpdateHook( +    Settings.set "exclusionRules",        [          { pattern: "http*://mail.google.com/*", passKeys: "" }          { pattern: "http*://www.facebook.com/*", passKeys: "abab" } @@ -39,7 +39,8 @@ context "Excluded URLs and pass keys",          { pattern: "http*://www.example.com/*", passKeys: "a bb c bba a" }          { pattern: "http*://www.duplicate.com/*", passKeys: "ace" }          { pattern: "http*://www.duplicate.com/*", passKeys: "bdf" } -      ]) +      ] +    Exclusions.postUpdateHook()    should "be disabled for excluded sites", ->      rule = isEnabledForUrl({ url: 'http://mail.google.com/calendar/page' }) | 
