spec/create/create_user_spec.rb in gratan-0.3.1.beta2 vs spec/create/create_user_spec.rb in gratan-0.3.1.beta3

- old
+ new

@@ -36,11 +36,11 @@ expect(result).to be_truthy expect(show_grants).to match_array [ "GRANT SELECT, INSERT, UPDATE, DELETE ON *.* TO 'scott'@'localhost' IDENTIFIED BY PASSWORD '*F2F68D0BB27A773C1D944270E5FAFED515A3FA40'", "GRANT SELECT, INSERT, UPDATE, DELETE ON `test`.* TO 'scott'@'localhost'", - ] + ].normalize end end context 'when add user' do before do @@ -95,11 +95,11 @@ expect(show_grants).to match_array [ "GRANT ALL PRIVILEGES ON *.* TO 'bob'@'%' REQUIRE SSL", "GRANT SELECT ON `test`.* TO 'bob'@'%'", "GRANT SELECT, INSERT, UPDATE, DELETE ON *.* TO 'scott'@'localhost' IDENTIFIED BY PASSWORD '*F2F68D0BB27A773C1D944270E5FAFED515A3FA40'", "GRANT SELECT, INSERT, UPDATE, DELETE ON `test`.* TO 'scott'@'localhost'", - ] + ].normalize end end context 'when create user with grant option' do subject { client } @@ -126,10 +126,10 @@ } expect(show_grants).to match_array [ "GRANT SELECT, INSERT, UPDATE, DELETE ON *.* TO 'scott'@'localhost' IDENTIFIED BY PASSWORD '*F2F68D0BB27A773C1D944270E5FAFED515A3FA40' WITH GRANT OPTION", "GRANT SELECT, INSERT, UPDATE, DELETE ON `test`.* TO 'scott'@'localhost'", - ] + ].normalize end end context 'when duplicata user' do subject { client }