require 'spec_helper'

describe Rack::IpAddressRestriction do
  it 'has a version number' do
    expect(Rack::IpAddressRestriction::VERSION).not_to be nil
  end

  it 'does something useful' do
    expect(false).to eq(true)
  end
end

require 'spec_helper'
require_relative 'shared_examples_for_rack_access'

describe Rack::IpAddressRestriction do
  it 'has a version number' do
    expect(Rack::IpAddressRestriction::VERSION).not_to be nil
  end

  it_behaves_like 'Rack::Access'
end

Use shared examples for Rack::Access in spec of Rack::IpAddressRestriction.
Use shared examples for Rack::Access in spec of Rack::IpAddressRestriction.
