pugin 1.0.1.pre → 1.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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3e098ca3ba1d75ad3f960e24dd0a5f693fcdf47
|
4
|
+
data.tar.gz: 57ed57564d93d81f01b1cf32f660f3883d1aaf2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfd518519aee88a2fe7633c9ad8f03b8d6d0a3f8e5aac2e74449a73c2bc69988a6cab7d5dfd35e6254fd64242fed61b0c165f3b3afbac5b6393ba959ef990cb0
|
7
|
+
data.tar.gz: e70e70e0710d93014a77bf10f9c0849494219439b8885aa38ae47cf7d8c8e6cd2a0932958d1409fa139487dae758c36442c41c67e60dafc1c9ba437e2b1d116d
|
@@ -4,8 +4,8 @@
|
|
4
4
|
%li
|
5
5
|
= link_to(I18n.t('pugin.components.navigation-main.item_1'), mps_path)
|
6
6
|
%li
|
7
|
-
= link_to(I18n.t('pugin.components.navigation-main.item_2'), house_members_current_a_z_letter_path(HousesHelper.lords_id, 'a'))
|
7
|
+
= link_to(I18n.t('pugin.components.navigation-main.item_2'), house_members_current_a_z_letter_path(Parliament::Utils::Helpers::HousesHelper.lords_id, 'a'))
|
8
8
|
%li
|
9
9
|
= link_to(I18n.t('pugin.components.navigation-main.item_4'), constituencies_current_a_z_letter_path('a'))
|
10
10
|
%li
|
11
|
-
= link_to(I18n.t('pugin.components.navigation-main.item_3'), house_parties_current_path(HousesHelper.commons_id))
|
11
|
+
= link_to(I18n.t('pugin.components.navigation-main.item_3'), house_parties_current_path(Parliament::Utils::Helpers::HousesHelper.commons_id))
|
data/lib/pugin/version.rb
CHANGED
@@ -4,13 +4,21 @@ require 'haml'
|
|
4
4
|
describe 'pugin/components/_navigation-main.html.haml', type: :view do
|
5
5
|
|
6
6
|
before :each do
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
module Parliament
|
8
|
+
module Utils
|
9
|
+
module Helpers
|
10
|
+
module HousesHelper
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
# Parliament::Utils::Helpers::HousesHelper = Class.new
|
16
|
+
allow(Parliament::Utils::Helpers::HousesHelper).to receive(:commons_id).and_return('123')
|
17
|
+
allow(Parliament::Utils::Helpers::HousesHelper).to receive(:lords_id).and_return('456')
|
10
18
|
allow(view).to receive(:mps_path).and_return("/mps")
|
11
|
-
allow(view).to receive(:house_members_current_a_z_letter_path).and_return("houses/#{HousesHelper.lords_id}/members/current/a-z/a")
|
19
|
+
allow(view).to receive(:house_members_current_a_z_letter_path).and_return("houses/#{Parliament::Utils::Helpers::HousesHelper.lords_id}/members/current/a-z/a")
|
12
20
|
allow(view).to receive(:constituencies_current_a_z_letter_path).and_return("constituencies/current/a-z/a")
|
13
|
-
allow(view).to receive(:house_parties_current_path).and_return("houses/#{HousesHelper.commons_id}/parties/current/")
|
21
|
+
allow(view).to receive(:house_parties_current_path).and_return("houses/#{Parliament::Utils::Helpers::HousesHelper.commons_id}/parties/current/")
|
14
22
|
end
|
15
23
|
|
16
24
|
it 'renders correctly' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.1
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Rayner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -315,9 +315,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
315
315
|
version: '0'
|
316
316
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
317
317
|
requirements:
|
318
|
-
- - "
|
318
|
+
- - ">="
|
319
319
|
- !ruby/object:Gem::Version
|
320
|
-
version:
|
320
|
+
version: '0'
|
321
321
|
requirements: []
|
322
322
|
rubyforge_project:
|
323
323
|
rubygems_version: 2.6.8
|