Sha256: 02e18fcd74857f1f9cdf6cab16dd7a69f623ce37e42c4247bb7cd61f41d0a989

Contents?: true

Size: 755 Bytes

Versions: 10

Compression:

Stored size: 755 Bytes

Contents

require 'spec_helper'

describe Architect4r::Server do
  
  subject { TEST_SERVER }
  
  describe 'required rest methods' do
    it { should respond_to(:get) }
    it { should respond_to(:post) }
    it { should respond_to(:put) }
    it { should respond_to(:delete) }
  end
  
  its(:configuration) { should be_a(Architect4r::Core::Configuration) }
  
  describe :get do
    
    it "should be nil for invalid urls" do
      subject.get('/kjsdhf').should be_nil
    end
    
    it "should handle unauthorized requests" do
      # the root node has a reference_node property
      subject.get('/').key?('reference_node').should be_true
    end
    
    it "should use basic authentication"
    
    it "should use digest authentication"
    
  end
  
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
architect4r-0.4.3.1 spec/server_spec.rb
architect4r-0.4.3 spec/server_spec.rb
architect4r-0.4.2 spec/server_spec.rb
architect4r-0.4.1 spec/server_spec.rb
architect4r-0.4 spec/server_spec.rb
architect4r-0.3.4.2 spec/server_spec.rb
architect4r-0.3.4.1 spec/server_spec.rb
architect4r-0.3.4 spec/server_spec.rb
architect4r-0.3.3.1 spec/server_spec.rb
architect4r-0.3.2 spec/server_spec.rb