Created
August 8, 2014 19:06
-
-
Save orafaelfragoso/940adee11ccf39f4a069 to your computer and use it in GitHub Desktop.
Testing a root route with Rspec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rails_helper' | |
RSpec.describe HomeController, :type => :controller do | |
describe "GET index" do | |
it "renders the :index template" do | |
expect(get: root_url(subdomain: nil)).to route_to( | |
controller: "home", | |
action: "index") | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment