diff --git a/spec/influxdb/client_spec.rb b/spec/influxdb/client_spec.rb
index <HASH>..<HASH> 100644
--- a/spec/influxdb/client_spec.rb
+++ b/spec/influxdb/client_spec.rb
@@ -220,7 +220,7 @@ describe InfluxDB::Client do
     it "should POST to create a new database user with permissions" do
       stub_request(:post, "http://influxdb.test:9999/db/foo/users").with(
         :query => {:u => "username", :p => "password"},
-        :body => {:name => "useruser", :password => "passpass", :readFrom => "/read*/", writeTo: "/write*/"}
+        :body => {:name => "useruser", :password => "passpass", :readFrom => "/read*/", :writeTo => "/write*/"}
       )
 
       @influxdb.create_database_user(
Fix spec failures in Ruby <I> due to new hash style