test/ur_rack_test.rb in ur-0.0.4 vs test/ur_rack_test.rb in ur-0.1.0

- old
+ new

@@ -8,22 +8,22 @@ assert_equal('inbound', ur.bound) assert_equal('GET', ur.request['method']) assert_equal('bar', ur.request.headers['foo']) assert_equal('https://ur.unth.net/', ur.request.uri) assert(ur.response.empty?) - assert_instance_of(Time, ur.processing.began_at) - assert_nil(ur.processing.duration) + assert_instance_of(Time, ur.metadata.began_at) + assert_nil(ur.metadata.duration) assert(ur.validate) end it 'builds from a rack request' do env = Rack::Request.new(Rack::MockRequest.env_for('https://ur.unth.net/', {'HTTP_FOO' => 'bar'})) ur = Ur.from_rack_request(env) assert_equal('inbound', ur.bound) assert_equal('GET', ur.request['method']) assert_equal('bar', ur.request.headers['foo']) assert_equal('https://ur.unth.net/', ur.request.uri) assert(ur.response.empty?) - assert_instance_of(Time, ur.processing.began_at) - assert_nil(ur.processing.duration) + assert_instance_of(Time, ur.metadata.began_at) + assert_nil(ur.metadata.duration) assert(ur.validate) end end