Skip to content

Instantly share code, notes, and snippets.


Nanduni Indeewaree Nimalsiri nanduni-nin

View GitHub Profile
View gist:6be104641bcb60f9d0e8
require 'uri'
require 'net/http'
class RedirectResolver
def self.resolve(uri)
uri_input = uri
if uri.is_a? String
uri = URI.parse(uri)
gjtorikian / homepage_spec.rb
Last active Dec 5, 2019
Basic Capybara testing with Jekyll + Rack
View homepage_spec.rb
require 'spec_helper'
describe "Homepage" do
before :each do
visit "/index.html"
it "has a title" do
expect(page).to have_css("h1", text: "GitHub Help")