mirror of
https://github.com/wahyd4/ocelots.git
synced 2026-08-16 16:36:28 +10:00
24 lines
687 B
Ruby
24 lines
687 B
Ruby
require 'spec_helper'
|
|
|
|
describe HomeController do
|
|
render_views
|
|
|
|
describe :index do
|
|
it 'renders landing page if user has not signed in' do
|
|
get :index
|
|
response.should be_success
|
|
response.body.should =~ /Get to Know Your Colleagues./
|
|
#response.body.should =~ /Please choose a approach to sign in./
|
|
end
|
|
|
|
it 'includes a button to sign in with Mozilla Persona' do
|
|
get :index
|
|
response.should be_success
|
|
#response.body.should =~ /Login with Persona/
|
|
#response.body.should =~ /Login with Weibo/
|
|
assert_select '#authenticate','Mozilla Persona'
|
|
end
|
|
|
|
it 'does not allow click other place except sign in buttons'
|
|
end
|
|
end |