spec/rest/sessions_spec.rb in finapps-2.2.21 vs spec/rest/sessions_spec.rb in finapps-2.2.22
- old
+ new
@@ -32,19 +32,19 @@
end
context 'for valid credentials' do
let(:credentials) { {email: 'email@domain.com', password: 'valid_password'} }
- 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('token value is in the result') { expect(results).to respond_to(:token) }
it('error_messages is empty') { expect(error_messages).to be_empty }
end
context 'for valid credentials & path argument' do
let(:create) { subject.create(credentials, 'operators/login') }
let(:credentials) { {email: 'email@domain.com', password: 'valid_password'} }
- 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('token value is in the result') { expect(results).to respond_to(:token) }
it('returns operator for operator path') { expect(results).to respond_to(:role) }
it('error_messages is empty') { expect(error_messages).to be_empty }
end
end