Sha256: 2e4afab58a85eb2b3b768217baf1b0f3a5133f898c18a9b894105640d5040c98

Contents?: true

Size: 363 Bytes

Versions: 1

Compression:

Stored size: 363 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sinatra-presence-0.0.1 spec/extension_spec.rb