Sha256: 73d217e7ac0f1f5e9b054fb5987616336580ef925ed8e5e510d1bbebaca03dcb

Contents?: true

Size: 631 Bytes

Versions: 3

Compression:

Stored size: 631 Bytes

Contents

# encoding: utf-8
require 'spec_helper'
describe "reflector/client_ip_address.html.haml" do
  before :each do
    config = Class.new do
      include FeduxOrg::Stdlib::Filesystem

      def root_directory
        ::File.expand_path('../../../', __FILE__)
      end

      def log_level
       :unknown
      end

      def access_log 
        File.join(working_directory, 'access.log')
      end
    end.new

    TestServer.config = config
  end

  context 'Reflect Client IP-Adress' do
    it 'shows client ip address' do
      visit '/reflector/client_ip_address'
      expect(page).to have_content '127.0.0.1'
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
test_server-0.5.2 spec/views/test_server/reflector/client_ip_address.html.haml_spec.rb
test_server-0.5.1 spec/views/test_server/reflector/client_ip_address.html.haml_spec.rb
test_server-0.5.0 spec/views/test_server/reflector/client_ip_address.html.haml_spec.rb