diff options
| author | mo khan <mo@mokhan.ca> | 2015-11-14 08:49:49 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-11-14 08:49:49 -0700 |
| commit | 0f10deb91d33169f1f7c7811c40258cacc43fbaf (patch) | |
| tree | 8fff7220abf53fe8c74dfbcb421d29f2c4d43883 /spec | |
| parent | 798fe1442e4f68f4d7f5ef94ad96e1a738a2c2c6 (diff) | |
fix broken specs.
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/default_spec.rb | 4 | ||||
| -rw-r--r-- | spec/nginx_spec.rb | 4 | ||||
| -rw-r--r-- | spec/rails_spec.rb | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/spec/default_spec.rb b/spec/default_spec.rb index de3e098..346eebb 100644 --- a/spec/default_spec.rb +++ b/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 diff --git a/spec/nginx_spec.rb b/spec/nginx_spec.rb index c4d3b7d..72da73f 100644 --- a/spec/nginx_spec.rb +++ b/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 diff --git a/spec/rails_spec.rb b/spec/rails_spec.rb index 10ade29..4a9fcb0 100644 --- a/spec/rails_spec.rb +++ b/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 |
