mno-enterprise-frontend 3.0.4 → 3.0.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: 841409b9d67f20cb4fd5e7c122044f45ab640506
4
- data.tar.gz: 5e4f6e3f3d7480472b96be82cc839645687e29f7
3
+ metadata.gz: 4d41be70b0d20dc29920c5a7dc9f924863e13a78
4
+ data.tar.gz: e8d40693404543d731bfcb4c861d039b940efcbf
5
5
  SHA512:
6
- metadata.gz: 454455ec61b5f0874d9f8e39f89b5bec50d112939714904e048ce24f67f52c407edd579140f50969ba214a45ac2c173106787a1c7ab3ff2dac73c099bae010d0
7
- data.tar.gz: 6071cc317eca62208b87254ca130dd3c44bc26c06f5f44e5db29e3316d3ae426f5618c770d12918a284f5456f84a1b23f61033ff8a3b0fb1e8a38d08bb6b89fc
6
+ metadata.gz: a65d3e1d0247744e3fdbef7a61fb3a92e987a0972cc2c1c0525fbcbb5fd989e4839ccdd17fd6eaa3d65f57e310520eee30421ea14029cb7c57dc78f94ac5a91f
7
+ data.tar.gz: 03d2e4ef10e9ae073a3d38cc5a5e988f78b697f9e7d6add533ad56e0f43900e739a37eb796a32133141b20d8e8eec5c20f0d7f08e1142a425201830238d84d0f
@@ -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.0.4
4
+ version: 3.0.5
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-29 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.0.4
20
+ version: 3.0.5
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.0.4
27
+ version: 3.0.5
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.0.4
34
+ version: 3.0.5
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.0.4
41
+ version: 3.0.5
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: less-rails
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -339,7 +339,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
339
339
  version: '0'
340
340
  requirements: []
341
341
  rubyforge_project:
342
- rubygems_version: 2.4.8
342
+ rubygems_version: 2.5.1
343
343
  signing_key:
344
344
  specification_version: 4
345
345
  summary: Maestrano Enterprise - Frontend