test/lockdown/test_access.rb in lockdown-2.0.5 vs test/lockdown/test_access.rb in lockdown-2.0.6
- old
+ new
@@ -41,11 +41,11 @@
permission(:registration)
permission(:view_posts)
public_access :site, :registration, :view_posts
assert_equal Lockdown::Configuration.public_access,
- "(\/site(\/.*)?)|(\/registration(\/.*)?)|(\/view_posts(\/.*)?)"
+ "(\/site(\/.*)?)#{Lockdown::DELIMITER}(\/registration(\/.*)?)#{Lockdown::DELIMITER}(\/view_posts(\/.*)?)"
end
def test_protected_access
permission(:my_account)
protected_access :my_account
@@ -57,10 +57,10 @@
permission(:my_account)
permission(:edit_posts)
protected_access :my_account, :edit_posts
assert_equal Lockdown::Configuration.protected_access,
- "(\/my_account(\/.*)?)|(\/edit_posts(\/.*)?)"
+ "(\/my_account(\/.*)?)#{Lockdown::DELIMITER}(\/edit_posts(\/.*)?)"
end
def test_user_group
permission(:site)
permission(:registration)