ama_layout 5.0.1 → 5.0.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: fa8f086b421e04a568cd142aa07ce8681bc3fa81
4
- data.tar.gz: cf80b2122c15b33c52795ba01d234ec44d3b79bb
3
+ metadata.gz: 701dd21e0a1a6c4d211768c64b9ffd073879bbf9
4
+ data.tar.gz: f3761640f39656867bc1d0347f7153314e796d49
5
5
  SHA512:
6
- metadata.gz: 6b66da15b24bef593d076f5325186dc02a3a22f409146620234e5c51bc37b8e9640131e6a622e838be5821cf0fe188d2a490ffefd1b86b183ac88016b8a7a94e
7
- data.tar.gz: f75b90e014e3280b16bb3f9b55dfce1f96b17d6c4406e8f40c7bb0cb5324ce96e4599800ecf84e0708beea2f4a5616e2e26775e127f997b62d03ceb552159104
6
+ metadata.gz: 053e17db61e1f5964a247e83d7187f21e2859ccd73e462a018d514a23d3256692d8a3a6e6dd19fbea46a57a6e17fa4f5391b5e35c254874c08d56adb5797566f
7
+ data.tar.gz: 63ea8a8a4b9155e14c8140e746e34111a3764c401b2b7b0a006f97a07799cd9c95a568e818c855b69480460e48725a91654a28c4d8da506f0df587acc5c200d0
@@ -47,14 +47,14 @@ module AmaLayoutContentHelper
47
47
  end
48
48
 
49
49
  def notice(notice)
50
- render "ama_layout/notice", locals: { message: notice } if notice
50
+ render partial: "ama_layout/notice", locals: { message: notice } if notice
51
51
  end
52
52
 
53
53
  def alert(alert)
54
- render "ama_layout/alert", locals: { message: alert } if alert
54
+ render partial: "ama_layout/alert", locals: { message: alert } if alert
55
55
  end
56
56
 
57
57
  def success_message(success)
58
- render "ama_layout/success", locals: { message: success } if success
58
+ render partial: "ama_layout/success", locals: { message: success } if success
59
59
  end
60
60
  end
@@ -1,3 +1,3 @@
1
1
  module AmaLayout
2
- VERSION = '5.0.1'
2
+ VERSION = '5.0.2'
3
3
  end
@@ -123,7 +123,7 @@ describe AmaLayoutContentHelper do
123
123
  let(:message) { "This is a notice." }
124
124
 
125
125
  it "renders the notice partial if a notice is present" do
126
- expect(helper).to receive(:render).with "ama_layout/notice", locals: { message: message }
126
+ expect(helper).to receive(:render).with partial: "ama_layout/notice", locals: { message: message }
127
127
  helper.notice(message)
128
128
  end
129
129
 
@@ -136,7 +136,7 @@ describe AmaLayoutContentHelper do
136
136
  let(:message) { "This is an alert." }
137
137
 
138
138
  it "renders the alert partial if a alert is present" do
139
- expect(helper).to receive(:render).with "ama_layout/alert", locals: { message: message }
139
+ expect(helper).to receive(:render).with partial: "ama_layout/alert", locals: { message: message }
140
140
  helper.alert(message)
141
141
  end
142
142
 
@@ -149,7 +149,7 @@ describe AmaLayoutContentHelper do
149
149
  let(:message) { "This is a success message" }
150
150
 
151
151
  it "renders the success partial if a success message is present" do
152
- expect(helper).to receive(:render).with "ama_layout/success", locals: { message: message }
152
+ expect(helper).to receive(:render).with partial: "ama_layout/success", locals: { message: message }
153
153
  helper.success_message(message)
154
154
  end
155
155
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ama_layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael van den Beuken