mirror of
https://github.com/wahyd4/ocelots.git
synced 2026-08-09 04:56:21 +10:00
23 lines
545 B
Ruby
23 lines
545 B
Ruby
require 'spec_helper'
|
|
|
|
describe HomeController do
|
|
render_views
|
|
|
|
before do
|
|
controller.stub!(:google_oauth_url).and_return 'http://google.com/oauth'
|
|
end
|
|
|
|
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./
|
|
end
|
|
|
|
it 'includes a button to sign in with Mozilla Persona' do
|
|
get :index
|
|
response.should be_success
|
|
assert_select '#authenticate','Mozilla Persona'
|
|
end
|
|
end
|
|
end |