Sha256: 688e4078e11939147638a16518fd789a230c192c8f8135e8b62a495fbaceef68

Contents?: true

Size: 658 Bytes

Versions: 15

Compression:

Stored size: 658 Bytes

Contents

class SiteHub
  describe Response do
    subject do
      described_class.new([], 200, {})
    end

    it 'extends Rack::Response' do
      expect(subject).to be_a(Rack::Response)
    end

    describe '#initialize' do
      it 'sets the response time' do
        expect(subject.time).to eq(Time.now)
      end
    end

    describe 'time' do
      it 'returns the same time every time' do
        first_return = subject.time
        expect(subject.time).to eq(first_return)
      end
    end

    describe '#headers' do
      it 'is an alias of header' do
        expect(subject.method(:header)).to eq(subject.method(:headers))
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sitehub-0.5.0.alpha12 spec/sitehub/response_spec.rb
sitehub-0.4.10 spec/sitehub/response_spec.rb
sitehub-0.5.0.alpha11 spec/sitehub/response_spec.rb
sitehub-0.5.0.alpha10 spec/sitehub/response_spec.rb
sitehub-0.5.0.alpha8 spec/sitehub/response_spec.rb
sitehub-0.5.0.alpha7 spec/sitehub/response_spec.rb
sitehub-0.5.0.alpha6 spec/sitehub/response_spec.rb
sitehub-0.5.0.alpha5 spec/sitehub/response_spec.rb
sitehub-0.5.0.alpha4 spec/sitehub/response_spec.rb
sitehub-0.5.0.alpha3 spec/sitehub/response_spec.rb
sitehub-0.5.0.alpha2 spec/sitehub/response_spec.rb
sitehub-0.4.9 spec/sitehub/response_spec.rb
sitehub-0.4.8 spec/sitehub/response_spec.rb
sitehub-0.4.7 spec/sitehub/response_spec.rb
sitehub-0.4.6 spec/sitehub/response_spec.rb