mno-enterprise-frontend 3.1.1 → 3.1.2

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: b1c1768c657a45cac2f125915797d61f58a63308
4
- data.tar.gz: ffa95d5abfb33b0131f70d963226a16d911223d1
3
+ metadata.gz: c431f00bac017bc5e0b43317f904229d23b8d7d7
4
+ data.tar.gz: 1fe0b7a0dfd183986278255ebb1fea9d8f024638
5
5
  SHA512:
6
- metadata.gz: 5d2d68bde3f31010ae0107dd62f905522e67f369716ef973d9140dfb3181292cee5a65ee8fe68fa73cd02792b79a2ecf42e37304abba4379d20e8bda0ed15aec
7
- data.tar.gz: b1942ef49e237aa2a3983030ef037ac9f33cfd071fbf1fb7ad99bda57b2df933ea98d8e918bdc89dc9494e7b7dbd6b78fee9fe7065c5d2aa1d3febf691baba8e
6
+ metadata.gz: 798d19046e33fa67064f10eff98a6c07e9bf60bdac4c5f889cc6e26d101903cd11af272276143aa77a3c9f76639ac596de661384ef8c0f883b54e54d7544ccf4
7
+ data.tar.gz: 55c2fcde88d9122e1f407aea4cfddaf8558100ed37de6cee8b434494eef484582f900381e90af224b3f2defcd1fcd8617fecab3ce12f396b92720a4715fddb44
@@ -6,6 +6,10 @@ module MnoEnterprise
6
6
  render_views
7
7
  routes { MnoEnterprise::Engine.routes }
8
8
 
9
+ # Freeze time (JWT are time dependent)
10
+ before { Timecop.freeze }
11
+ after { Timecop.return }
12
+
9
13
  # Stub controller ability
10
14
  let!(:ability) { stub_ability }
11
15
  let(:extra_params) { {some: 'param'} }
@@ -30,7 +34,7 @@ module MnoEnterprise
30
34
  it_behaves_like "a user protected resource"
31
35
 
32
36
  it { subject; expect(response).to be_success }
33
- it { Timecop.freeze { subject; expect(assigns(:redirect_to)).to eq(redirect_url) } }
37
+ it { subject; expect(assigns(:redirect_to)).to eq(redirect_url) }
34
38
 
35
39
  Webhook::OAuthController::PROVIDERS_WITH_OPTIONS.each do |provider|
36
40
  describe "#{provider.capitalize} provider" do
@@ -39,7 +43,7 @@ module MnoEnterprise
39
43
 
40
44
  context 'with perform=true' do
41
45
  let(:extra_params) { {perform: true} }
42
- it { Timecop.freeze { subject; expect(assigns(:redirect_to)).to eq(redirect_url) } }
46
+ it { subject; expect(assigns(:redirect_to)).to eq(redirect_url) }
43
47
  end
44
48
  end
45
49
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mno-enterprise-frontend
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Lachaume
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-08-30 00:00:00.000000000 Z
12
+ date: 2016-09-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mno-enterprise-core
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 3.1.1
20
+ version: 3.1.2
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 3.1.1
27
+ version: 3.1.2
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: mno-enterprise-api
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - '='
33
33
  - !ruby/object:Gem::Version
34
- version: 3.1.1
34
+ version: 3.1.2
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 3.1.1
41
+ version: 3.1.2
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: less-rails
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -340,7 +340,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
340
340
  version: '0'
341
341
  requirements: []
342
342
  rubyforge_project:
343
- rubygems_version: 2.4.8
343
+ rubygems_version: 2.5.1
344
344
  signing_key:
345
345
  specification_version: 4
346
346
  summary: Maestrano Enterprise - Frontend