Commit 0f10deb

mo khan <mo@mokhan.ca>
2015-11-14 15:49:49
fix broken specs.
1 parent 798fe14
spec/default_spec.rb
@@ -10,4 +10,8 @@ describe "stronglifters::default" do
   it "installs the base packages" do
     expect(subject).to install_package(packages)
   end
+
+  it "installs logrotate" do
+    expect(subject).to install_package("logrotate")
+  end
 end
spec/nginx_spec.rb
@@ -31,10 +31,6 @@ describe "stronglifters::nginx" do
     expect(subject).to start_service("nginx")
   end
 
-  it "installs logrotate" do
-    expect(subject).to install_package("logrotate")
-  end
-
   it "creates the log directory for nginx" do
     expect(subject).to create_directory("/var/log/nginx")
   end
spec/rails_spec.rb
@@ -17,7 +17,7 @@ describe "stronglifters::rails" do
     stub_command("stat -c %U #{root_path} | grep root").and_return(nil)
   end
 
-  it "creates the root directory for the application" do
-    expect(subject).to create_directory(root_path)
+  it "creates the sharec directory for the application" do
+    expect(subject).to create_directory("#{shared_path}/config")
   end
 end