|
|
|
@ -812,7 +812,6 @@ RSpec.describe UsersController, type: :request do
|
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
context "when our search term matches an email" do |
|
|
|
|
let(:search_param) { "other_org@other_example.com" } |
|
|
|
|
|
|
|
|
@ -824,7 +823,6 @@ RSpec.describe UsersController, type: :request do
|
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
context "when our search term matches an email and a name" do |
|
|
|
|
let!(:other_user) { FactoryBot.create(:user, organisation: user.organisation, name: "joe", email: "other@example.com") } |
|
|
|
|
let!(:other_org_user) { FactoryBot.create(:user, name: "User 4", email: "joe@other_example.com") } |
|
|
|
@ -841,7 +839,6 @@ RSpec.describe UsersController, type: :request do
|
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
describe "CSV download" do |
|
|
|
|
let(:headers) { { "Accept" => "text/csv" } } |
|
|
|
|
let(:user) { FactoryBot.create(:user, :support) } |
|
|
|
|