mumuki-laboratory 9.0.0 → 9.0.1

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: 96b344d472912c433732e101f0754c229aa8c406e47a2ff54503a9625bb78f5a
4
- data.tar.gz: b73fba56c2c87069b1e402ce010eaa17d296220c92df9cc241d92e9aa92eb909
3
+ metadata.gz: d4fc890303f1598f34b8258b73ca92a3beb1d594cbdb7f00d729401df4e44f89
4
+ data.tar.gz: 8ad9aba5c0b5d11251a972f2f5354f6f3ee6c6fcb3ef62d72b592e0d6e78b66f
5
5
  SHA512:
6
- metadata.gz: b2557a3374e33d3a273b4df24cdd5eb3e46d0e997af5a862c6b6a6cd792a63c4a78e6c248927efeaf964d275139923cea0292a204b92448a965614c2b1f0f82f
7
- data.tar.gz: 2667001640a346bd3517445621adb899599b52a44d7c40625a6ae67e7a46e7c5c2d935501358b5a28e5ebeb6aa7a0da58cc4af0cf74fb2a7706d738577d47837
6
+ metadata.gz: 3f44cc0d2df94e3b613abea57d4ff8a1c48628a2d3fbc1797cb2a2fdca1d54c1c639c8da8e19ddfb65c581f874927758cb1fbf673cd9cf66ed8c1b9186a5d9ca
7
+ data.tar.gz: c5e6c4b580ec812c0ff84290558f6439fab546dc2be009da77c032b9059700230da3db4e1fc0765a4560d846d6409d4e6a17f79dbbff830a10199ad4ae25a6ec
@@ -84,6 +84,6 @@ module LinksHelper
84
84
  end
85
85
 
86
86
  def url_for_bibliotheca_guide(guide)
87
- "#{url_for_application(:bibliotheca_ui)}/#/guides/#{guide.slug}"
87
+ "#{url_for_application(:bibliotheca_ui).chomp('/')}/guides/#{guide.slug}"
88
88
  end
89
89
  end
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Laboratory
3
- VERSION = '9.0.0'
3
+ VERSION = '9.0.1'
4
4
  end
5
5
  end
@@ -26,4 +26,14 @@ describe ApplicationHelper, organization_workspace: :test do
26
26
  it { expect(link_to_path_element(lesson)).to start_with '<a href="/lessons/1-foo">foo' }
27
27
  end
28
28
 
29
+ describe 'bibliotheca links' do
30
+ let(:current_user) { create(:user) }
31
+ let(:lesson) { create(:lesson, id: 1, name: 'foo') }
32
+ let(:guide) { lesson.guide }
33
+
34
+ before { current_user.make_editor_of! guide.slug }
35
+
36
+ it { expect(url_for_bibliotheca_guide(guide)).to start_with 'http://bibliotheca.localmumuki.io/#/guides/mumuki/mumuki-test-lesson' }
37
+ end
38
+
29
39
  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.0.0
4
+ version: 9.0.1
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-03-04 00:00:00.000000000 Z
11
+ date: 2021-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails