spec/acceptance/rest/stats_spec.rb in ably-0.1.6 vs spec/acceptance/rest/stats_spec.rb in ably-0.2.0

- old
+ new

@@ -1,12 +1,12 @@ -require "spec_helper" -require "securerandom" +require 'spec_helper' +require 'securerandom' -describe "REST" do +describe 'Ably::Rest Stats' do [:json, :msgpack].each do |protocol| context "over #{protocol}" do - describe "fetching application stats" do + describe 'fetching application stats' do before(:context) do reload_test_app end def number_of_channels() 3 end @@ -38,10 +38,10 @@ sleep(10) end [:minute, :hour, :day, :month].each do |interval| context "by #{interval}" do - it "should return all the stats for the application" do + it 'should return all the stats for the application' do stats = @context_client.stats(start: @interval_start * 1000, by: interval.to_s, direction: 'forwards') expect(stats.size).to eql(1) stat = stats.first