mumuki-laboratory 9.1.2 → 9.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e190bc19e4911bff91dc2ce3895730bb74fdecdbd9885e1ddf10a79fac567de
4
- data.tar.gz: dc68d604fc84a1de20352d75f8c81db0df0f5192e647e46a8e278e5d6f4e3fa0
3
+ metadata.gz: 2cfa3dbfafd371b02d03a8979a9ea41c186408ee7c79dfe618d9b438507fb5c1
4
+ data.tar.gz: b528d6fccb7108f1923635b460baf08a9e808e39ebcc1b508e46e50046ddc12c
5
5
  SHA512:
6
- metadata.gz: 6182c707ddfb24e92f4e31d178a64e9818cc304ba1378fbc17d27271fec97026bfabaf33f187361b06c1734448235d08522d0963e825f4c3d266c2727ab4ae7c
7
- data.tar.gz: c3d035faf7dab3f2dfaf248890cb2c65368c3637f7542eb170819ff6636166528449228fdc2044d3825d40c8cc5dd10d2866fbebf27646e273d1898df19486a9
6
+ metadata.gz: f5ab2dbd1fe513278283752cd8967b9bbe1baba85ec2bf6f1dcb1d00eda37e39082d4b0c680772c890e006f0dd020aa402cc7449c8d30cc2b5fd7f5274b399ed
7
+ data.tar.gz: 720c042427be1fc6dfe2b5875f6c0d424884a47e749e9333c5ad1d2507532a67eb92b75c44125f00905a02ba15f275459834da890dcdeddc32d21e6b28cf7547
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Laboratory
3
- VERSION = '9.1.2'
3
+ VERSION = '9.1.3'
4
4
  end
5
5
  end
@@ -116,5 +116,20 @@ describe WithStudentPathNavigation, organization_workspace: :test do
116
116
 
117
117
  it { expect(next_button(lesson_1)).to include "<a class=\"btn btn-complementary w-100\" role=\"button\" href=\"/chapters/#{chapter_2.friendly_name}\"><span class=\"fa5-text-r\">Next: #{chapter_2.name}</span><i class=\"fas fa-chevron-right\"></i></a>" }
118
118
  end
119
+
120
+ context "when finishing an exam" do
121
+ let!(:organization) { create :organization, exams: [exam] }
122
+
123
+ let(:exam) { create(:exam, exercises: [ exercise ]) }
124
+ let(:exercise) { create(:exercise) }
125
+
126
+ before do
127
+ organization.switch!
128
+ exercise.submit_solution!(current_user).passed!
129
+ end
130
+
131
+ it { expect { next_button(exercise) }.to_not raise_error }
132
+ it { expect(next_button(exercise)).to be_nil }
133
+ end
119
134
  end
120
135
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-laboratory
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.1.2
4
+ version: 9.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-30 00:00:00.000000000 Z
11
+ date: 2021-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 9.1.1
33
+ version: 9.1.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 9.1.1
40
+ version: 9.1.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mumukit-bridge
43
43
  requirement: !ruby/object:Gem::Requirement