Sha256: 5528ca9c03583d87f84a0715133696ab69b13afc846239e1b6588e7f2f6ab6fa

Contents?: true

Size: 415 Bytes

Versions: 20

Compression:

Stored size: 415 Bytes

Contents

require File.expand_path('../../spec_helper', __FILE__)

module RestAssured::Models
  describe Request do
    it { should belong_to(:double) }
    it { should validate_presence_of(:rack_env) }

    it 'knows when it has been created' do
      now = Time.now
      Time.stub(:now).and_return(now)
      r = Request.create(:body => 'sdfsd', :rack_env => 'headers')

      r.created_at.should == now
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rest-assured-2.0.0 spec/models/request_spec.rb
rest-assured-1.2.2 spec/models/request_spec.rb
rest-assured-1.2.1 spec/models/request_spec.rb
rest-assured-1.2.0 spec/models/request_spec.rb
rest-assured-1.1.10 spec/models/request_spec.rb
rest-assured-1.1.9 spec/models/request_spec.rb
rest-assured-1.1.8 spec/models/request_spec.rb
rest-assured-1.1.7 spec/models/request_spec.rb
rest-assured-1.1.6 spec/models/request_spec.rb
rest-assured-1.1.5 spec/models/request_spec.rb
rest-assured-1.1.4 spec/models/request_spec.rb
rest-assured-1.1.3 spec/models/request_spec.rb
rest-assured-1.1.2 spec/models/request_spec.rb
rest-assured-1.1.1 spec/models/request_spec.rb
rest-assured-1.1.0 spec/models/request_spec.rb
rest-assured-1.0.0 spec/models/request_spec.rb
rest-assured-1.0.0.rc2 spec/models/request_spec.rb
rest-assured-1.0.0.rc1 spec/models/request_spec.rb
rest-assured-0.3.2 spec/models/request_spec.rb
rest-assured-0.3.1 spec/models/request_spec.rb