From 25f04bdd4dbbff93c6ec22ab8acd788b21bdd613 Mon Sep 17 00:00:00 2001 From: alop Date: Mon, 13 May 2013 13:14:21 -0700 Subject: [PATCH] cleaned up the test --- spec/api_spec.rb | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/spec/api_spec.rb b/spec/api_spec.rb index 7d4c289..2583ecd 100644 --- a/spec/api_spec.rb +++ b/spec/api_spec.rb @@ -101,19 +101,7 @@ describe "cinder::api" do expect(@chef_run).to execute_command cmd end - describe "policy.json" do - before do - @file = @chef_run.template "/etc/cinder/policy.json" - end - - it "has proper owner" do - expect(@file).to be_owned_by "cinder", "cinder" - end - - it "has proper modes" do - expect(sprintf("%o", @file.mode)).to eq "644" - end - end + expect_creates_policy_json "service[cinder-api]" describe "api-paste.ini" do before do