Created
March 7, 2014 09:16
-
-
Save rberger/9408221 to your computer and use it in GitHub Desktop.
files/default/tests/minitest/default_test.rb for Slide 206
This file contains 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
require File.expand_path('../support/helpers', __FILE__) | |
require File.expand_path('../../apache2/support/helpers', __FILE__) | |
describe 'myface::default' do | |
include Helpers::Myface | |
include Helpers::Apache | |
# Example spec tests can be found at http://git.io/Fahwsw | |
# it 'runs no tests by default' do | |
# end | |
# Verify that MySQL is started and enabled: | |
it "Enables and starts the mysql daemon" do | |
service("mysqld").must_be_running | |
service("mysqld").must_be_enabled | |
end | |
# Verify that the myface database has a user table | |
it "Seeds the myface database" do | |
myface_tables.must_include "users" | |
end | |
# Verify that Apache is installed and running: | |
it "Enables and starts the httpd daemon" do | |
service("httpd").must_be_running | |
service("httpd").must_be_enabled | |
end | |
# Verify that mod_php is installed for apache: | |
it "enables mod_php5" do | |
apache_enabled_modules.must_include "php5_module" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment