mumuki-laboratory 6.1.4 → 6.1.5

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
  SHA1:
3
- metadata.gz: 4948fb4a53aa2b8a644d30e277ba22e36c97f288
4
- data.tar.gz: d8eb048fc90d467600a0ece58095e09475c82df3
3
+ metadata.gz: 5da7fc2c103d42bde8cb1d9ee7a4f4586e2a1203
4
+ data.tar.gz: 43f4d2c1a46755599b66c0ed3ff745cf6076b1a0
5
5
  SHA512:
6
- metadata.gz: 56267fa13ab108b5eb6b2fef47b0b51abe837c09783e7189b59f3f4afa6dcfeac1886ee8f7a50cc9ef208a999c90d0e17ecdbc40b7990050b7f1db0d85da765c
7
- data.tar.gz: 882babf2c0a112c9682637910378db3612121b8e8448ac27f80095b8b4aec2453a5ba907d503a74776aeb415fa233aa22071b1c1cd6a2fdc33882e3f4b12aa8b
6
+ metadata.gz: f5c8d70ce1e9328d08333eefefc7caf3532df1939b1b6a48e972abf818bbf783f67bbe94eec1d30a2b80abf375007b8a94e0332d9cdb85008271ca025e21f692
7
+ data.tar.gz: 3045fa6100e55a01fb8041a4b52363facb5d27dfaa8e44c90a8aceaa5932a32ef1a0e6adb629b6f590bdc1573ff1ec698082a88713617f51816164670c617b24
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Laboratory
3
- VERSION = '6.1.4'
3
+ VERSION = '6.1.5'
4
4
  end
5
5
  end
@@ -4,6 +4,20 @@ describe Organization, organization_workspace: :test do
4
4
  let(:user) { create(:user) }
5
5
  let(:central) { create(:organization, name: 'central') }
6
6
 
7
+ describe '.import_from_resource_h!' do
8
+ let(:book) { create(:book) }
9
+ let(:resource_h) { {
10
+ name: 'zulema',
11
+ book: book.slug,
12
+ profile: { locale: 'es', contact_email: 'contact@email.com' }
13
+ } }
14
+ let!(:imported) { Organization.import_from_resource_h! resource_h }
15
+ let(:found) { Organization.find_by(name: 'zulema').to_resource_h }
16
+
17
+ it { expect(imported).to_not be nil }
18
+ it { expect(found).to json_eq resource_h, except: [:theme, :settings] }
19
+ end
20
+
7
21
  describe '.current' do
8
22
  let(:organization) { Organization.find_by(name: 'test') }
9
23
  it { expect(organization).to_not be nil }
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: 6.1.4
4
+ version: 6.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-24 00:00:00.000000000 Z
11
+ date: 2018-11-30 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: 6.1.4
33
+ version: 6.1.5
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: 6.1.4
40
+ version: 6.1.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mumukit-login
43
43
  requirement: !ruby/object:Gem::Requirement