Sha256: 8c463fbbcd8febdfc506777a054fc0d2b2d2fc5840d1a5bd0ccb5bfd915c5161
Contents?: true
Size: 449 Bytes
Versions: 4
Compression:
Stored size: 449 Bytes
Contents
require File.expand_path('../../spec_helper', __FILE__) module RestAssured::Models describe Request do it { is_expected.to belong_to(:double) } it { is_expected.to validate_presence_of(:rack_env) } it 'knows when it has been created' do now = Time.now allow(Time).to receive(:now).and_return(now) r = Request.create(:body => 'sdfsd', :rack_env => 'headers') expect(r.created_at).to eq(now) end end end
Version data entries
4 entries across 4 versions & 1 rubygems