spec/rails/auth/acl_spec.rb in rails-auth-0.4.0 vs spec/rails/auth/acl_spec.rb in rails-auth-0.4.1

- old
+ new

@@ -9,9 +9,15 @@ allow_claims: ClaimsMatcher } ) end + describe "#initialize" do + it "raises TypeError if given a non-Array ACL type" do + expect { described_class.new(:bogus) }.to raise_error(TypeError) + end + end + describe "#match" do it "matches routes against the ACL" do expect(example_acl.match(env_for(:get, "/"))).to eq true expect(example_acl.match(env_for(:get, "/foo/bar/baz"))).to eq true expect(example_acl.match(env_for(:get, "/_admin"))).to eq false