require 'spec_helper' describe Sinatra::Presence do it "should initialize with :local_authority set to 127.0.0.1" do expect(TestApp.local_authority).to eq('127.0.0.1:9292') end it "should respond to '/local'" do get '/local' end it "should redirect requests to '/local'" do get '/local' expect(last_response).to be_redirect end end