• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pulibrary / bibdata / b3c4a532-5da0-46f8-9c20-20018605a028

21 Mar 2025 08:11PM UTC coverage: 42.257% (-49.9%) from 92.185%
b3c4a532-5da0-46f8-9c20-20018605a028

push

circleci

sandbergja
Move various gems from the default Gemfile group to a more appropriate group

1599 of 3784 relevant lines covered (42.26%)

2.56 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

35.29
/app/models/event.rb
1
class Event < ActiveRecord::Base
1✔
2
  has_one :dump
1✔
3
  validates :message_body, uniqueness: { allow_blank: true }
1✔
4

5
  before_destroy do
1✔
6
    self.dump.destroy unless self.dump.nil?
×
7
  end
8

9
  class << self
1✔
10
    def record
1✔
11
      event = Event.new
×
12
      event.start = Time.now.utc
×
13
      event.success = true
×
14
      yield(event)
×
15
    rescue Exception => e
16
      event.success = false
×
17
      event.error = "#{e.class}: #{e.message}"
×
18
      warn e.message if defined?(Rake)
×
19
    ensure
20
      event.finish = Time.now.utc
×
21
      event.save!
×
22
      return event
×
23
    end
24
  end # class << self
25
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc