Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brianjaustin committed Dec 27, 2024
1 parent 5f52362 commit ae5f8be
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion app/views/admin/admin_invitations/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@
<dt><%= label_tag "invitation[number_of_invites]", t(".grant_invites.number_of_invitations") %></dt>
<dd><%= text_field_tag "invitation[number_of_invites]", nil, autocomplete: "on" %></dd>
<dt><%= label_tag "invitation[user_group]", t(".grant_invites.users") %></dt>
<dd><%= select_tag "invitation[user_group]", [t(".grant_invites.all"), t(".grant_invites.with_no_unused")] %></dd>
<dd>
<%= select_tag "invitation[user_group]",
options_for_select([t(".grant_invites.all"), t(".grant_invites.with_no_unused")],
t(".grant_invites.all")) %>
</dd>
<dt class="landmark"><%= t(".grant_invites.landmark_submit") %></dt>
<dd class="submit actions"><%= submit_tag t(".grant_invites.generate_invitations") %></dd>
</fieldset>
Expand Down
2 changes: 1 addition & 1 deletion features/admins/admin_invitations.feature
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ Feature: Admin Actions to Manage Invitations
Then I should see "There are 2 requests in the queue."
When I fill in "Number of people to invite" with "1"
And press "Invite from queue"
Then I should see "There are 1 requests in the queue."
Then I should see "There is 1 request in the queue."
And I should see "1 person from the invite queue is being invited"
And 1 email should be delivered to "[email protected]"

Expand Down
2 changes: 1 addition & 1 deletion spec/controllers/pseuds_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
matching_pseud.reload

post :destroy, params: { user_id: user, id: matching_pseud }
it_redirects_to_with_error(user_pseuds_path(user), "You cannot delete the pseud matching your user name, sorry!")
it_redirects_to_with_error(user_pseuds_path(user), "You cannot delete the pseud matching your username, sorry!")
end
end
end
Expand Down

0 comments on commit ae5f8be

Please sign in to comment.