api_key_spec.rb revision 248ce7a27b1f8b0f557b2d7f05967084753c3bbb
1ffc4fc0f3b09d35eb82399725ff3ace12969bfcEugen Kuksarequire 'spec_helper'
7c7a19761235efff584ee65a1c6dc4aa1735ff64Eugen Kuksa let!(:key) { described_class.create_new_key!(old_key.user) }
1ffc4fc0f3b09d35eb82399725ff3ace12969bfcEugen Kuksa expect(described_class.where(status: 'valid').to_a).
7ca38d75d045fade73b81bff6fdf34f4755d75fbEugen Kuksa invalid_key = build(:api_key, status: 'nice status')