Sha256: b64942ab3d4f689a1be3ae487392e78582ef2c0c73550af8f7c4daef5c806405
Contents?: true
Size: 628 Bytes
Versions: 22
Compression:
Stored size: 628 Bytes
Contents
require 'spec_helper' module Hubstats describe QaSignoff, :type => :model do it 'should create and return a QA Signoff' do signoff = QaSignoff.first_or_create(123, 456, 789) expect(signoff.user_id).to eq(789) expect(signoff.repo_id).to eq(123) expect(signoff.pull_request_id).to eq(456) end it 'should remove a signoff' do signoff = QaSignoff.first_or_create(123, 456, 789) expect(Hubstats::QaSignoff.where(pull_request_id: 456).count).to eq(1) QaSignoff.remove_signoff(123, 456) expect(Hubstats::QaSignoff.where(pull_request_id: 456)).to eq([]) end end end
Version data entries
22 entries across 22 versions & 1 rubygems