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