1) HomeController GET 'index' when not logged in
Failure/Error: it { should be_success }
expected success? to return true, got false
# ./spec/controllers/home_controller_spec.rb:16:in `block (4 levels) in <top (required)>'
2) HomeController GET 'index' when not logged in should be titled as the app name
Failure/Error: should have_selector "title", :content => @app_name
expected following output to contain a <title/> tag:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body>You are being <a href="https://www.test.host/">redirected</a>.</body></html>
# ./spec/controllers/home_controller_spec.rb:19:in `block (4 levels) in <top (required)>'
3) HomeController GET 'index' when not logged in should have a header
Failure/Error: should have_selector "h1"
expected following output to contain a <h1/> tag:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body>You are being <a href="https://www.test.host/">redirected</a>.</body></html>
# ./spec/controllers/home_controller_spec.rb:23:in `block (4 levels) in <top (required)>'
4) HomeController GET 'index' when not logged in should have a sign up link
Failure/Error: should have_selector "a", :content => "Sign up NOW!", :href => app_path.new_user_path
expected following output to contain a <a href='/users/new'>Sign up NOW!</a> tag:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body>You are being <a href="https://www.test.host/">redirected</a>.</body></html>
# ./spec/controllers/home_controller_spec.rb:39:in `block (4 levels) in <top (required)>'
5) HomeController GET 'index' when not logged in login form should be present
Failure/Error: should have_selector "form", :action => app_path.sessions_path, :method => "post" do
expected following output to contain a <form action='/sessions' method='post'/> tag:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body>You are being <a href="https://www.test.host/">redirected</a>.</body></html>
# ./spec/controllers/home_controller_spec.rb:28:in `block (5 levels) in <top (required)>'
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "w3.org/TR/REC-html40/loose.dtd">
<html><body>You are being <a href="test.host">redirected</a>.</body></html>
# ./spec/controllers/home_controller_spec.rb:19:in `block (4 levels) in <top (required)>'
3) HomeController GET 'index' when not logged in should have a header
Failure/Error: should have_selector "h1"
expected following output to contain a <h1/> tag:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "w3.org/TR/REC-html40/loose.dtd">
<html><body>You are being <a href="test.host">redirected</a>.</body></html>
# ./spec/controllers/home_controller_spec.rb:23:in `block (4 levels) in <top (required)>'
4) HomeController GET 'index' when not logged in should have a sign up link
Failure/Error: should have_selector "a", :content => "Sign up NOW!", :href => app_path.new_user_path
expected following output to contain a <a href='/users/new'>Sign up NOW!</a> tag:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "w3.org/TR/REC-html40/loose.dtd">
<html><body>You are being <a href="test.host">redirected</a>.</body></html>
# ./spec/controllers/home_controller_spec.rb:39:in `block (4 levels) in <top (required)>'
5) HomeController GET 'index' when not logged in login form should be present
Failure/Error: should have_selector "form", :action => app_path.sessions_path, :method => "post" do
expected following output to contain a <form action='/sessions' method='post'/> tag:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "w3.org/TR/REC-html40/loose.dtd">
<html><body>You are being <a href="test.host">redirected</a>.</body></html>