Sha256: 270a70f35b3802bdaad1c1870344260cac1131ffa40dd622a0d396324423b562
Contents?: true
Size: 748 Bytes
Versions: 1
Compression:
Stored size: 748 Bytes
Contents
require_relative '../lib/liftapp-client.rb' describe Liftapp::Client do it 'returns profile_hash' do client = Liftapp::Client.new(email: 'jmaddi@gmail.com', password: 'jla3iekoafro') expect(client.login['profile_hash']).to eq 'e7fcd2db926273e895ef' expect(client.profile_hash).to eq 'e7fcd2db926273e895ef' end it 'returns habit list' do client = Liftapp::Client.new(email: 'jmaddi@gmail.com', password: 'jla3iekoafro') expect(client.dashboard['subscriptions'].length).to eq 7 end it 'returns checkin data' do client = Liftapp::Client.new(profile_hash: 'e7fcd2db926273e895ef') data = client.checkin_data('3280') data[:checkins].length.should be > 10 data[:'habit-name'].should eq 'Write' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
liftapp-client-0.0.1 | spec/lift_spec.rb |