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

fast-programmer / outboxer / 14571123183

21 Apr 2025 09:30AM UTC coverage: 98.335% (+0.07%) from 98.261%
14571123183

Pull #272

github

web-flow
Merge ba354684e into d8ccd6fd4
Pull Request #272: Optimise EventCreatedJob.perform_async

69 of 69 new or added lines in 2 files covered. (100.0%)

1595 of 1622 relevant lines covered (98.34%)

6.54 hits per line

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

100.0
/spec/lib/outboxer/database/connect_spec.rb
1
require "rails_helper"
1✔
2

3
module Outboxer
1✔
4
  RSpec.describe Database do
1✔
5
    describe ".connect" do
1✔
6
      before(:each) { Database.disconnect(logger: nil) }
3✔
7

8
      after(:all) do
1✔
9
        config = Database.config(environment: "test", concurrency: 20)
1✔
10
        Database.connect(config: config, logger: nil)
1✔
11
      end
12

13
      context "when db config valid" do
1✔
14
        let(:config) { Database.config(environment: "test", concurrency: 20) }
3✔
15

16
        it "establishes a connection without errors" do
1✔
17
          expect do
1✔
18
            Database.connect(config: config, logger: nil)
1✔
19
          end.not_to raise_error
20
        end
21

22
        it "actually connects to the database" do
1✔
23
          Database.connect(config: config, logger: nil)
1✔
24

25
          expect(Database.connected?).to be true
1✔
26
        end
27
      end
28
    end
29
  end
30
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