spec/acceptance/rest/presence_spec.rb in ably-0.7.1 vs spec/acceptance/rest/presence_spec.rb in ably-0.7.2
- old
+ new
@@ -19,12 +19,11 @@
context 'tested against presence fixture data set up in test app' do
describe '#get' do
before(:context) do
# When this test is run as a part of a test suite, the presence data injected in the test app may have expired
- WebMock.disable!
- TestApp.reload
+ reload_test_app
end
let(:channel) { client.channel('persisted:presence_fixtures') }
let(:presence) { channel.presence.get }
@@ -52,11 +51,10 @@
end
describe '#history' do
before(:context) do
# When this test is run as a part of a test suite, the presence data injected in the test app may have expired
- WebMock.disable!
- TestApp.reload
+ reload_test_app
end
let(:channel) { client.channel('persisted:presence_fixtures') }
let(:presence_history) { channel.presence.history }