Sha256: f574b914a84f13c165de7aae3398ae0fdee22980a79b88b75ddc94b9d0faff1e
Contents?: true
Size: 820 Bytes
Versions: 39
Compression:
Stored size: 820 Bytes
Contents
require 'spec_helper' module Hubstats describe Comment, :type => :model do it 'should create and return a comment and user' do repo = build(:repo, :created_at => Date.today, :updated_at => Date.today) user = build(:user, :created_at => Date.today, :updated_at => Date.today, :login => "elliothursh", :id => 10) comment = build(:comment, :created_at => Date.today, :updated_at => Date.today, :user => user, :pull_request_url => "www.pull.com", :id => 100, :repo => repo) pull_request = build(:pull_request, :created_at => Date.today, :updated_at => Date.today, :id => 1000, :url => "www.pull.com", :repo => repo, :user => user) expect(comment.id).to eq(100) expect(comment.user_id).to eq(10) end end end
Version data entries
39 entries across 39 versions & 1 rubygems