Skip to content

Commit

Permalink
update tests for admin_email
Browse files Browse the repository at this point in the history
  • Loading branch information
miya0001 committed Feb 23, 2015
1 parent b77ca6c commit e3eafb3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/default/wp_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit e3eafb3

Please sign in to comment.