DEV: Fix incorrect spec file names.

DEV: Fix incorrect spec file names.

Co-authored-by: Daniel Waterworth me@danielwaterworth.com

diff --git a/spec/jobs/auto_expire_user_api_keys.rb b/spec/jobs/auto_expire_user_api_keys.rb
deleted file mode 100644
index 8460fbc..0000000
--- a/spec/jobs/auto_expire_user_api_keys.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-require 'rails_helper'
-
-RSpec.describe Jobs::AutoExpireUserApiKeys do
-  let(:key1) { Fabricate(:readonly_user_api_key) }
-  let(:key2) { Fabricate(:readonly_user_api_key) }
-
-  context 'when user api key is unused in last 1 days' do
-
-    before do
-      SiteSetting.expire_user_api_keys_days = true
-    end
-
-    it 'should revoke the key' do
-      freeze_time
-
-      key1.update!(last_used_at: 2.days.ago)
-
-      described_class.new.execute({})
-
-      expect(key1.reload.revoked_at).to eq(Time.zone.now)
-      expect(key2.reload.revoked_at).to eq(nil)
-    end
-  end
-end
diff --git a/spec/jobs/auto_expire_user_api_keys_spec.rb b/spec/jobs/auto_expire_user_api_keys_spec.rb
new file mode 100644
index 0000000..8460fbc
--- /dev/null
+++ b/spec/jobs/auto_expire_user_api_keys_spec.rb
@@ -0,0 +1,24 @@
+require 'rails_helper'
+
+RSpec.describe Jobs::AutoExpireUserApiKeys do
+  let(:key1) { Fabricate(:readonly_user_api_key) }
+  let(:key2) { Fabricate(:readonly_user_api_key) }
+
+  context 'when user api key is unused in last 1 days' do
+
+    before do
+      SiteSetting.expire_user_api_keys_days = true
+    end
+
+    it 'should revoke the key' do
+      freeze_time
+
+      key1.update!(last_used_at: 2.days.ago)
+
+      described_class.new.execute({})
+
+      expect(key1.reload.revoked_at).to eq(Time.zone.now)
+      expect(key2.reload.revoked_at).to eq(nil)
+    end
+  end
+end
diff --git a/spec/models/user_badge.rb b/spec/models/user_badge.rb
deleted file mode 100644
index 5161b41..0000000
--- a/spec/models/user_badge.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-require 'rails_helper'
-require_dependency 'user_badge'
-
-describe UserBadge do
-
-  context 'validations' do
-    before(:each) { BadgeGranter.grant(Fabricate(:badge), Fabricate(:user)) }
-
-    it { is_expected.to validate_presence_of(:badge_id) }
-    it { is_expected.to validate_presence_of(:user_id) }
-    it { is_expected.to validate_presence_of(:granted_at) }
-    it { is_expected.to validate_presence_of(:granted_by) }
-    it { is_expected.to validate_uniqueness_of(:badge_id).scoped_to(:user_id) }
-  end
-
-end
diff --git a/spec/models/user_badge_spec.rb b/spec/models/user_badge_spec.rb
new file mode 100644
index 0000000..5161b41
--- /dev/null
+++ b/spec/models/user_badge_spec.rb
@@ -0,0 +1,16 @@
+require 'rails_helper'
+require_dependency 'user_badge'
+
+describe UserBadge do
+
+  context 'validations' do
+    before(:each) { BadgeGranter.grant(Fabricate(:badge), Fabricate(:user)) }
+
+    it { is_expected.to validate_presence_of(:badge_id) }
+    it { is_expected.to validate_presence_of(:user_id) }
+    it { is_expected.to validate_presence_of(:granted_at) }
+    it { is_expected.to validate_presence_of(:granted_by) }
+    it { is_expected.to validate_uniqueness_of(:badge_id).scoped_to(:user_id) }
+  end
+
+end

GitHub sha: 97dcd50e