Sha256: 820ee9b2a047d93dcf3a185540728faa56b4e39eca6a30550017324da1f4d9d9
Contents?: true
Size: 621 Bytes
Versions: 2
Compression:
Stored size: 621 Bytes
Contents
require 'rails_helper' RSpec.describe UserProjectJob, type: :model do it "should delegate user name" do UserProjectJob.make.name.should_not == nil end it "should delegate user email" do UserProjectJob.make.email.should_not == nil end it "should delegate job title" do UserProjectJob.make.title.should_not == nil end it "should scope job options by project" do ProjectJob.make! ProjectJob.make! p = Project.make! j = Job.make! p.jobs.push j p.save r = UserProjectJob.make!(project: p, job: j) UserProjectJob.options_for_job(p).should == p.jobs end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
introspective_grape-0.0.4 | spec/models/user_project_job_spec.rb |
introspective_grape-0.0.3 | spec/models/user_project_job_spec.rb |