Created
July 7, 2015 22:10
-
-
Save NickRycar/ac9ec6f953c40354505d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # Cookbook Name:: sitedbaas | |
| # Spec:: default | |
| # | |
| # Copyright (c) 2015 The Authors, All Rights Reserved. | |
| require 'spec_helper' | |
| describe 'sitedbaas::default' do | |
| context 'When all attributes are default, on an unspecified platform' do | |
| let(:chef_run) do | |
| runner = ChefSpec::ServerRunner.new | |
| runner.converge(described_recipe) | |
| end | |
| it 'downloads the web content tarball' do | |
| expect(chef_run).to create_remote_file("#{Chef::Config[:file_cache_path]}/webfiles.tar.gz") | |
| end | |
| it 'converges successfully' do | |
| chef_run # This should not raise an error | |
| end | |
| it 'creates index.html' do | |
| expect(chef_run).to render_file('/var/www/html/index.html') | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment