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

pulibrary / pdc_discovery / 529bb1cf-d0bf-4901-97c6-12679aea8117

17 Aug 2023 01:30PM UTC coverage: 90.265% (-6.3%) from 96.544%
529bb1cf-d0bf-4901-97c6-12679aea8117

Pull #478

circleci

carolyncole
Updates to css to fix tests after bundle update
Also ran rubocop -A && Prettier
Pull Request #478: Switching to selenium to fix CI

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

2142 of 2373 relevant lines covered (90.27%)

93.35 hits per line

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

74.07
/spec/models/version_footer_spec.rb
1
# frozen_string_literal: true
2

3
require 'rails_helper'
1✔
4

5
# rubocop:disable RSpec/ExampleLength
6
RSpec.describe VersionFooter do
1✔
7
  describe "info" do
1✔
8
    context "with stale information" do
1✔
9
      before do
1✔
10
        described_class.revision_file = Pathname.new(fixture_path).join("REVISION").to_s
1✔
11
        described_class.revisions_logfile = Pathname.new(fixture_path).join("revisions_stale.log").to_s
1✔
12
        described_class.reset!
1✔
13
      end
14

15
      it "detects stale information" do
1✔
16
        info = described_class.info
1✔
17
        expect(info[:stale]).to be true
1✔
18
        expect(info[:sha]).to eq "2222ae5c4ad9aaa0faad5208f1bf8108bd5934bf"
1✔
19
        expect(info[:branch]).to eq "version-2"
×
20
        expect(info[:version]).to eq "02 December 2021"
×
21
        expect(info[:tagged_release]).to be false
×
22
      end
23
    end
24

25
    context "with current information" do
1✔
26
      before do
1✔
27
        described_class.revision_file = Pathname.new(fixture_path).join("REVISION").to_s
1✔
28
        described_class.revisions_logfile = Pathname.new(fixture_path).join("revisions_current.log").to_s
1✔
29
        described_class.reset!
1✔
30
      end
31
      it "detects current information" do
1✔
32
        info = described_class.info
1✔
33
        expect(info[:stale]).to be false
1✔
34
        expect(info[:sha]).to eq "7a3b1d7c0f77db526963568ece3e0bb5a6399ce4"
×
35
        expect(info[:branch]).to eq "v0.8.0"
×
36
        expect(info[:version]).to eq "10 December 2021"
×
37
        expect(info[:tagged_release]).to be true
×
38
      end
39
    end
40
  end
41
end
42
# rubocop enable RSpec/ExampleLength
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