require'spec_helper'describeEntityRequestdosubjectdodescribed_class.new(user: 'user',project: 'some project')enddescribe'methods created'doit'defines accessible attributes'doexpect(subject.user).toeq'user'expect(subject.project).toeq'some project'endit'raises error when attribute is not defined'doexpect{subject.some_method}.toraise_errorNoMethodErrorendendend