Adjust the test to the new reality
This commit is contained in:
parent
aef9fd0912
commit
602ec1354f
1 changed files with 4 additions and 4 deletions
|
@ -55,15 +55,15 @@ test
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'create' do
|
describe 'create' do
|
||||||
it 'makes a user' do
|
it 'makes a database' do
|
||||||
provider.expects(:mysql).with([defaults_file, '-NBe', "create database `#{resource[:name]}` character set #{resource[:charset]}"])
|
provider.expects(:mysql).with([defaults_file, '-NBe', "create database `#{resource[:name]}` character set #{resource[:charset]} collate #{resource[:collate]}"])
|
||||||
provider.expects(:exists?).returns(true)
|
provider.expects(:exists?).returns(true)
|
||||||
provider.create.should be_true
|
provider.create.should be_true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'destroy' do
|
describe 'destroy' do
|
||||||
it 'removes a user if present' do
|
it 'removes a database if present' do
|
||||||
provider.expects(:mysql).with([defaults_file, '-NBe', "drop database `#{resource[:name]}`"])
|
provider.expects(:mysql).with([defaults_file, '-NBe', "drop database `#{resource[:name]}`"])
|
||||||
provider.expects(:exists?).returns(false)
|
provider.expects(:exists?).returns(false)
|
||||||
provider.destroy.should be_true
|
provider.destroy.should be_true
|
||||||
|
@ -71,7 +71,7 @@ test
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'exists?' do
|
describe 'exists?' do
|
||||||
it 'checks if user exists' do
|
it 'checks if database exists' do
|
||||||
instance.exists?.should be_true
|
instance.exists?.should be_true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue