ddr-alerts 0.1.1 → 0.2.0

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: af14c8b79578a2b5eee1a38628c0253c77618353
4
- data.tar.gz: c7a4f82b84061e173df4eb839e022262559ae57a
3
+ metadata.gz: ff87962567bb2ed78a3110a2a2418708741f5373
4
+ data.tar.gz: 64cf8e22db0c0a080825e96d5ed1ab8fde2ad708
5
5
  SHA512:
6
- metadata.gz: be5419c384e1c8c3a8cf3e5636709853cfca687a8d8e0f7f8c5ff4997b5d7c80a6b91648952ad61e3ad8b27b84613b0b098b4a469371ed909a28f1d378f1c14d
7
- data.tar.gz: 79392b4d3c95c12ec6a72dd8f18f55955d182490639578cb34af1bbcc11bdd35bca913da662ed89e83ffcea970d75afcef6ec18633e7f8c15df1f7fffc6397cf
6
+ metadata.gz: 411d2a001872d26122d4ef6f8699ea8fa90810cbd359033c7e95be873d0562d953a88112c13a9f06e1fd4e0e73fba37510a353220a08386f32e4c144e7629559
7
+ data.tar.gz: 72da51b2cc7fa0f6675aae8633808e10fe12c0ce65187b7e9e6f7a98088d6ffdb6e1306b75a36b95f13f2f13e9a6bcbb3c805d1f5345a608da1cb6ede70ad911
@@ -1,5 +1,5 @@
1
1
  module Ddr
2
2
  module Alerts
3
- VERSION = "0.1.1"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
@@ -1,2 +1,6 @@
1
1
  module ApplicationHelper
2
+
3
+ def alert_messages
4
+ end
5
+
2
6
  end
@@ -3,8 +3,9 @@ require 'spec_helper'
3
3
  RSpec.describe 'ddr/alerts/message/_alert_message.html.erb', type: :view do
4
4
 
5
5
  let(:msgs) { [ FactoryGirl.create(:message, message: "AAA"), FactoryGirl.create(:message, message: "BBB") ] }
6
+ before { allow(view).to receive(:alert_messages).and_return(msgs) }
6
7
  it "displays the messages" do
7
- render partial: 'ddr/alerts/message/alert_message.html.erb', locals: { alert_messages: msgs }
8
+ render partial: 'ddr/alerts/message/alert_message.html.erb'
8
9
  expect(rendered).to match(/AAA/)
9
10
  expect(rendered).to match(/BBB/)
10
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddr-alerts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jim Coble
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-17 00:00:00.000000000 Z
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -177,9 +177,7 @@ files:
177
177
  - spec/dummy/config/locales/en.yml
178
178
  - spec/dummy/config/routes.rb
179
179
  - spec/dummy/config/secrets.yml
180
- - spec/dummy/db/development.sqlite3
181
180
  - spec/dummy/db/schema.rb
182
- - spec/dummy/db/test.sqlite3
183
181
  - spec/dummy/lib/assets/.keep
184
182
  - spec/dummy/log/.keep
185
183
  - spec/dummy/public/404.html
@@ -250,9 +248,7 @@ test_files:
250
248
  - spec/dummy/config/locales/en.yml
251
249
  - spec/dummy/config/routes.rb
252
250
  - spec/dummy/config/secrets.yml
253
- - spec/dummy/db/development.sqlite3
254
251
  - spec/dummy/db/schema.rb
255
- - spec/dummy/db/test.sqlite3
256
252
  - spec/dummy/lib/assets/.keep
257
253
  - spec/dummy/log/.keep
258
254
  - spec/dummy/public/404.html