~ubuntu-branches/ubuntu/trusty/puppet/trusty

« back to all changes in this revision

Viewing changes to spec/unit/network/rest_authconfig_spec.rb

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2011-10-22 14:08:22 UTC
  • mfrom: (1.1.25) (3.1.32 sid)
  • Revision ID: package-import@ubuntu.com-20111022140822-odxde5lohc45yhuz
Tags: 2.7.6-1
* New upstream release (CVE-2011-3872)
* Remove cherry-picked "groupadd_aix_warning" patch
* Install all new manpages

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    params = {:ip => "127.0.0.1", :node => "me", :environment => :env, :authenticated => true}
30
30
    @acl.expects(:is_request_forbidden_and_why?).with("path", :save, "to/resource", params).returns(nil)
31
31
 
32
 
    @authconfig.allowed?("path", :save, "to/resource", params)
 
32
    @authconfig.check_authorization("path", :save, "to/resource", params)
33
33
  end
34
34
 
35
35
  describe "when defining an acl with mk_acl" do