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 +4 -4
- data/lib/mumuki/laboratory/version.rb +1 -1
- data/spec/models/organization_spec.rb +14 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5da7fc2c103d42bde8cb1d9ee7a4f4586e2a1203
|
4
|
+
data.tar.gz: 43f4d2c1a46755599b66c0ed3ff745cf6076b1a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5c8d70ce1e9328d08333eefefc7caf3532df1939b1b6a48e972abf818bbf783f67bbe94eec1d30a2b80abf375007b8a94e0332d9cdb85008271ca025e21f692
|
7
|
+
data.tar.gz: 3045fa6100e55a01fb8041a4b52363facb5d27dfaa8e44c90a8aceaa5932a32ef1a0e6adb629b6f590bdc1573ff1ec698082a88713617f51816164670c617b24
|
@@ -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
|
+
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-
|
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.
|
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.
|
40
|
+
version: 6.1.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: mumukit-login
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|