spec/rest/consumers_spec.rb in finapps-2.2.21 vs spec/rest/consumers_spec.rb in finapps-2.2.22
- old
+ new
@@ -14,11 +14,11 @@
let(:show) { subject.show(:valid_public_id) }
let(:results) { show[0] }
let(:error_messages) { show[1] }
it { expect { show }.not_to raise_error }
- it('results is a Hashie::Rash') { expect(results).to be_a(Hashie::Rash) }
+ it('results is a Hashie::Rash') { expect(results).to be_a(Hashie::Mash::Rash) }
it('performs a get and returns the response') { expect(results).to respond_to(:public_id) }
it('error_messages array is empty') { expect(error_messages).to eq([]) }
end
context 'for invalid token' do
@@ -66,10 +66,10 @@
let(:update) { subject.update(:valid_public_id, password: 'Aa123456!', password_confirm: 'Aa123456!') }
let(:results) { update[0] }
let(:error_messages) { update[1] }
it { expect { update }.not_to raise_error }
- it('results is a Hashie::Rash') { expect(results).to be_a(Hashie::Rash) }
+ it('results is a Hashie::Rash') { expect(results).to be_a(Hashie::Mash::Rash) }
it('the public_id is on the results') { expect(results).to respond_to(:public_id) }
it('the new token is on the results') { expect(results).to respond_to(:token) }
it('error_messages array is empty') { expect(error_messages).to eq([]) }
end