Sha256: fcb3dd0aa083457876d1038cfe0312b3b807dffcddb8a39f48200da30df45009
Contents?: true
Size: 910 Bytes
Versions: 10
Compression:
Stored size: 910 Bytes
Contents
require 'spec_helper' module Hubstats describe Comment, :type => :model do it 'creates and returns a comment and user' do github_user = { :login => "elliothursh", :id => 10, :type => "User" } github_comment = { :user => github_user, :pull_request_url => "www.pull.com", :id => 100 } github_repo = { :id => 151, :name => "HellWorld" } pull_request = { :id => 1000, :url => "www.pull.com", :repository => github_repo, :user => github_user } repo = Hubstats::Repo.create_or_update(github_repo) pull = Hubstats::PullRequest.create_or_update(pull_request) comment = Hubstats::Comment.create_or_update(github_comment) expect(comment.id).to eq(github_comment[:id]) expect(comment.user_id).to eq(github_user[:id]) end end end
Version data entries
10 entries across 10 versions & 1 rubygems