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

MarkUsProject / Markus / 10928630900

18 Sep 2024 07:13PM UTC coverage: 51.86% (-39.7%) from 91.541%
10928630900

push

github

web-flow
Enable cron-based automatic syncing of LTI rosters (#7178)

574 of 1298 branches covered (44.22%)

Branch coverage included in aggregate %.

2 of 20 new or added lines in 4 files covered. (10.0%)

1886 existing lines in 60 files now uncovered.

3818 of 7171 relevant lines covered (53.24%)

76.37 hits per line

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

4.55
/spec/support/checking_scale_mark_examples.rb
1
shared_examples 'Scale_mark' do
1✔
UNCOV
2
  describe 'when update is true' do
×
UNCOV
3
    describe 'when mark is nil' do
×
UNCOV
4
      before do
×
UNCOV
5
        mark.update(mark: nil)
×
6
      end
7

UNCOV
8
      it 'should return nil' do
×
UNCOV
9
        expect(mark.scale_mark(curr_max_mark, mark.criterion.max_mark)).to be_nil
×
10
      end
11

UNCOV
12
      it 'should not update the mark' do
×
UNCOV
13
        expect(mark.mark).to be_nil
×
14
      end
15
    end
16

UNCOV
17
    describe 'when mark is 0 or prev_max_mark is 0' do
×
UNCOV
18
      before do
×
UNCOV
19
        mark.update(mark: 0)
×
20
      end
21

UNCOV
22
      it 'should return 0' do
×
UNCOV
23
        expect(mark.scale_mark(curr_max_mark, mark.criterion.max_mark)).to eq(0)
×
UNCOV
24
        expect(mark.scale_mark(curr_max_mark, 0)).to eq(0)
×
25
      end
26

UNCOV
27
      it 'should not update the mark' do
×
UNCOV
28
        expect(mark.mark).to eq(0)
×
29
      end
30
    end
31

UNCOV
32
    it 'should update and return the new_mark' do
×
UNCOV
33
      expect(mark.scale_mark(curr_max_mark, mark.criterion.max_mark)).to eq(mark.mark)
×
34
    end
35
  end
36

UNCOV
37
  describe 'when update is false' do
×
UNCOV
38
    it 'should not update the new mark' do
×
UNCOV
39
      expect(mark.scale_mark(curr_max_mark, mark.criterion.max_mark, update: false)).not_to eq(mark.mark)
×
40
    end
41
  end
42
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

© 2026 Coveralls, Inc