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

MarkUsProject / Markus / 10929214045

18 Sep 2024 07:58PM UTC coverage: 51.729% (-39.9%) from 91.634%
10929214045

push

github

web-flow
Enable assigning graders by section (#7179)

575 of 1300 branches covered (44.23%)

Branch coverage included in aggregate %.

4 of 29 new or added lines in 2 files covered. (13.79%)

1912 existing lines in 61 files now uncovered.

3822 of 7200 relevant lines covered (53.08%)

76.07 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