spec/cloudquery_spec.rb in xoopit-cloud_query-0.2.0 vs spec/cloudquery_spec.rb in xoopit-cloud_query-0.2.1
- old
+ new
@@ -1,6 +1,6 @@
-require 'spec_helper'
+require 'spec/spec_helper'
if ENV["TEST_REAL_HTTP"]
# Create a config.yml file containing the following:
# :account: <your account name>
# :secret: <your secret>
@@ -357,10 +357,10 @@
@params['x_name'].should == 'account'
end
it "should return a hash with the x_time parameter with the current milliseconds since epoch" do
@params.should have_key('x_time')
- @params['x_time'].should be_close(Time.now.to_i_with_milliseconds, 100)
+ @params['x_time'].should be_close(Time.now.to_i_milliseconds, 100)
end
it "should return a hash with the x_nonce parameter of the format \d+.\d+" do
@params.should have_key('x_nonce')
@params['x_nonce'].should match(/^\d+.\d+$/)