|
1189 | 1189 | let(:target_user) { build(:user, created_at: 1.minute.ago) } |
1190 | 1190 | include_examples "staff can always change usernames" |
1191 | 1191 |
|
1192 | | - it "is true for the user to change his own username" do |
| 1192 | + it "is true for the user to change their own username" do |
1193 | 1193 | Guardian.new(target_user).can_edit_username?(target_user).should be_true |
1194 | 1194 | end |
1195 | 1195 | end |
|
1203 | 1203 |
|
1204 | 1204 | context 'with no posts' do |
1205 | 1205 | include_examples "staff can always change usernames" |
1206 | | - it "is true for the user to change his own username" do |
| 1206 | + it "is true for the user to change their own username" do |
1207 | 1207 | Guardian.new(target_user).can_edit_username?(target_user).should be_true |
1208 | 1208 | end |
1209 | 1209 | end |
1210 | 1210 |
|
1211 | 1211 | context 'with posts' do |
1212 | 1212 | before { target_user.stubs(:post_count).returns(1) } |
1213 | 1213 | include_examples "staff can always change usernames" |
1214 | | - it "is false for the user to change his own username" do |
| 1214 | + it "is false for the user to change their own username" do |
1215 | 1215 | Guardian.new(target_user).can_edit_username?(target_user).should be_false |
1216 | 1216 | end |
1217 | 1217 | end |
|
1224 | 1224 |
|
1225 | 1225 | include_examples "staff can always change usernames" |
1226 | 1226 |
|
1227 | | - it "is false for the user to change his own username" do |
| 1227 | + it "is false for the user to change their own username" do |
1228 | 1228 | Guardian.new(user).can_edit_username?(user).should be_false |
1229 | 1229 | end |
1230 | 1230 | end |
|
1244 | 1244 | Guardian.new(build(:user)).can_edit_email?(build(:user, created_at: 1.minute.ago)).should be_false |
1245 | 1245 | end |
1246 | 1246 |
|
1247 | | - it "is true for a regular user to edit his own email" do |
| 1247 | + it "is true for a regular user to edit their own email" do |
1248 | 1248 | Guardian.new(user).can_edit_email?(user).should be_true |
1249 | 1249 | end |
1250 | 1250 |
|
|
1270 | 1270 | Guardian.new(build(:user)).can_edit_email?(build(:user, created_at: 1.minute.ago)).should be_false |
1271 | 1271 | end |
1272 | 1272 |
|
1273 | | - it "is false for a regular user to edit his own email" do |
| 1273 | + it "is false for a regular user to edit their own email" do |
1274 | 1274 | Guardian.new(user).can_edit_email?(user).should be_false |
1275 | 1275 | end |
1276 | 1276 |
|
|
0 commit comments