@@ -226,10 +226,12 @@ def set_app!(identity_options = {})
226226 post '/auth/identity/register' , properties
227227 expect ( env_hash ) . to eq ( nil )
228228 end
229+
229230 it 'renders registration form' do
230231 post '/auth/identity/register' , properties
231232 expect ( last_response . body ) . to be_include ( described_class . default_options [ :registration_form_title ] )
232233 end
234+
233235 it 'displays validation failure message' do
234236 post '/auth/identity/register' , properties
235237 expect ( last_response . body ) . to be_include ( described_class . default_options [ :validation_failure_message ] )
@@ -242,19 +244,23 @@ def set_app!(identity_options = {})
242244 true
243245 }
244246 end
247+
245248 it 'sets the auth hash' do
246249 post '/auth/identity/register' , properties
247250 expect ( auth_hash [ 'uid' ] ) . to match ( /\d +/ )
248251 expect ( auth_hash [ 'provider' ] ) . to eq ( 'identity' )
249252 end
253+
250254 it 'does not render registration form' do
251255 post '/auth/identity/register' , properties
252256 expect ( last_response . body ) . not_to be_include ( described_class . default_options [ :registration_form_title ] )
253257 end
258+
254259 it 'does not display validation failure message' do
255260 post '/auth/identity/register' , properties
256261 expect ( last_response . body ) . not_to be_include ( described_class . default_options [ :validation_failure_message ] )
257262 end
263+
258264 it 'does not display registration failure message' do
259265 post '/auth/identity/register' , properties
260266 expect ( last_response . body ) . not_to be_include ( described_class . default_options [ :registration_failure_message ] )
@@ -317,10 +323,12 @@ def set_app!(identity_options = {})
317323 post '/auth/identity/register' , properties
318324 expect ( env_hash ) . to eq ( nil )
319325 end
326+
320327 it 'renders registration form' do
321328 post '/auth/identity/register' , properties
322329 expect ( last_response . body ) . to be_include ( described_class . default_options [ :registration_form_title ] )
323330 end
331+
324332 it 'displays validation failure message' do
325333 post '/auth/identity/register' , properties
326334 expect ( last_response . body ) . to be_include ( described_class . default_options [ :validation_failure_message ] )
@@ -333,18 +341,22 @@ def set_app!(identity_options = {})
333341 true
334342 }
335343 end
344+
336345 it 'does not set the env hash' do
337346 post '/auth/identity/register' , properties
338347 expect ( env_hash ) . to eq ( nil )
339348 end
349+
340350 it 'renders registration form' do
341351 post '/auth/identity/register' , properties
342352 expect ( last_response . body ) . to be_include ( described_class . default_options [ :registration_form_title ] )
343353 end
354+
344355 it 'does not display validation failure message' do
345356 post '/auth/identity/register' , properties
346357 expect ( last_response . body ) . not_to be_include ( described_class . default_options [ :validation_failure_message ] )
347358 end
359+
348360 it 'display registration failure message' do
349361 post '/auth/identity/register' , properties
350362 expect ( last_response . body ) . to be_include ( described_class . default_options [ :registration_failure_message ] )
0 commit comments