This file contains 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 'uri' | |
require 'net/http' | |
class RedirectResolver | |
def self.resolve(uri) | |
uri_input = uri | |
if uri.is_a? String | |
uri = URI.parse(uri) | |
end |
This file contains 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 'spec_helper' | |
describe "Homepage" do | |
before :each do | |
visit "/index.html" | |
end | |
it "has a title" do | |
expect(page).to have_css("h1", text: "GitHub Help") |