Skip to content

Commit

Permalink
11403: remove old tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdimond committed Nov 29, 2023
1 parent 260452d commit 23a64bb
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 112 deletions.
7 changes: 0 additions & 7 deletions spec/features/users/user_regenerable_field_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@
login(user)
end

describe "api key" do
scenario "can regenerate" do
visit("/en/m/#{mission.compact_name}/users/#{user.id}/edit")
expect_token_regenerated(".user_api_key")
end
end

describe "sms auth code" do
scenario "can regenerate" do
visit("/en/m/#{mission.compact_name}/users/#{user.id}/edit")
Expand Down
16 changes: 0 additions & 16 deletions spec/models/form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,6 @@
let(:user) { create(:user) }
let(:form) { create(:form) }

context "API User" do
before do
form.access_level = "protected"
form.whitelistings.create(user_id: user.id)
end

it "should return true for user in whitelist" do
expect(form.api_user_id_can_see?(user.id)).to be_truthy
end

it "should return false for user not in whitelist" do
other_user = create(:user)
expect(form.api_user_id_can_see?(other_user.id)).to be_falsey
end
end

describe "validation" do
describe "DynamicPatternValidator" do
let(:form) { build(:form, default_response_name: "Item: calc($Foo + 4) ") }
Expand Down
4 changes: 0 additions & 4 deletions spec/models/user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@
describe "creation" do
let(:user) { create(:user, email: "[email protected]") }

it "should have an api_key generated" do
expect(user.api_key).to_not(be_blank)
end

it "should have an SMS auth code generated" do
expect(user.sms_auth_code).to_not(be_blank)
end
Expand Down
85 changes: 0 additions & 85 deletions spec/requests/api_key_field_spec.rb

This file was deleted.

0 comments on commit 23a64bb

Please sign in to comment.