From b77ca6c6c52a19d37cdb6048f3b2afb865365a77 Mon Sep 17 00:00:00 2001 From: blivesta Date: Tue, 24 Feb 2015 00:26:15 +0900 Subject: [PATCH 1/2] Added admin_email Setting --- Vagrantfile | 1 + provision/default.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index d23912c..90b7507 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -115,6 +115,7 @@ Vagrant.configure(2) do |config| :locale => ENV['wp_lang'] || _conf['lang'], :admin_user => _conf['admin_user'], :admin_password => _conf['admin_pass'], + :admin_email => _conf['admin_email'], :default_plugins => _conf['plugins'], :default_theme => _conf['theme'], :title => _conf['title'], diff --git a/provision/default.yml b/provision/default.yml index 9ef6983..0efd470 100644 --- a/provision/default.yml +++ b/provision/default.yml @@ -35,6 +35,7 @@ wp_siteurl: '' # Path to the WP_SITEURL like "wp" # admin_user: admin admin_pass: admin +admin_email: vccw@example.com # # WordPress Database From e3eafb3d900befae5926efad99c8184de2702679 Mon Sep 17 00:00:00 2001 From: miya0001 Date: Tue, 24 Feb 2015 01:19:32 +0900 Subject: [PATCH 2/2] update tests for admin_email --- spec/default/wp_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/default/wp_spec.rb b/spec/default/wp_spec.rb index cf4e962..65d4139 100644 --- a/spec/default/wp_spec.rb +++ b/spec/default/wp_spec.rb @@ -38,6 +38,12 @@ its(:stdout){ should eq 'administrator' + "\n" } end +describe command("wp user get #{Shellwords.shellescape(_conf['admin_user'])} --format=json | jq -r .user_email") do + let(:disable_sudo) { true } + its(:exit_status) { should eq 0 } + its(:stdout){ should eq _conf['admin_email'] + "\n" } +end + describe command("wp eval 'echo get_locale();'") do let(:disable_sudo) { true } its(:exit_status) { should eq 0 }