Files
ocelots/spec/controllers/home_controller_spec.rb
T
2012-11-09 14:58:05 +08:00

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