notifly 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +1 -69
- data/.editorconfig +0 -22
- data/.rspec +0 -2
- data/.travis.yml +0 -13
- data/Gemfile +0 -24
- data/Gemfile.lock +0 -199
- data/VERSION +0 -1
- data/app/assets/images/notifly/.keep +0 -0
- data/spec/controllers/notifly/notifications_controller_spec.rb +0 -44
- data/spec/dummy/README.rdoc +0 -28
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +0 -14
- data/spec/dummy/app/assets/stylesheets/application.css +0 -20
- data/spec/dummy/app/controllers/application_controller.rb +0 -13
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/controllers/site_controller.rb +0 -4
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/models/dummy_object.rb +0 -19
- data/spec/dummy/app/models/post.rb +0 -21
- data/spec/dummy/app/views/layouts/application.html.erb +0 -15
- data/spec/dummy/app/views/site/index.html.erb +0 -2
- data/spec/dummy/bin/bundle +0 -3
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/config/application.rb +0 -29
- data/spec/dummy/config/boot.rb +0 -5
- data/spec/dummy/config/database.exemple.yml +0 -12
- data/spec/dummy/config/database.travis.yml +0 -4
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -37
- data/spec/dummy/config/environments/production.rb +0 -78
- data/spec/dummy/config/environments/test.rb +0 -39
- data/spec/dummy/config/initializers/assets.rb +0 -8
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/cookies_serializer.rb +0 -3
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/config/initializers/mime_types.rb +0 -4
- data/spec/dummy/config/initializers/session_store.rb +0 -3
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -23
- data/spec/dummy/config/routes.rb +0 -5
- data/spec/dummy/config/secrets.yml +0 -22
- data/spec/dummy/db/migrate/20141031165049_create_dummy_objects.rb +0 -9
- data/spec/dummy/db/migrate/20141103191353_create_posts.rb +0 -10
- data/spec/dummy/db/migrate/20141104121318_add_dummy_to_post.rb +0 -5
- data/spec/dummy/db/schema.rb +0 -54
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +0 -67
- data/spec/dummy/public/422.html +0 -67
- data/spec/dummy/public/500.html +0 -66
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/spec/features/notifly/counter_spec.rb +0 -38
- data/spec/dummy/spec/features/notifly/loading_notifications_spec.rb +0 -38
- data/spec/dummy/spec/features/notifly/read_notifications_spec.rb +0 -70
- data/spec/dummy/spec/models/dummy_object_spec.rb +0 -58
- data/spec/dummy/spec/models/post_spec.rb +0 -89
- data/spec/models/notifly/notification_spec.rb +0 -18
- data/spec/rails_helper.rb +0 -21
- data/spec/spec_helper.rb +0 -62
- data/spec/support/shared_connection.rb +0 -14
- data/spec/support/suppress_log.rb +0 -3
- data/spec/support/wait_ajax.rb +0 -53
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cd688b78d6c9bd43fc21d84927e1671479da7f8
|
4
|
+
data.tar.gz: ab3a15ee6847fdc5d6eb61e1c318a1ef6cbe79a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4276abb933c545750ae71740e920aa504799233b5e0b30ec6e127af071bcb961c5afb9e4866d71f9696c91d34762eb65db1f675ef458e77cf7777cb93ec8ccf5
|
7
|
+
data.tar.gz: a6ddaca09f7b7e0ba2a21a2c968805fa17c2d221c9733a2d828354402f6df12dc9c56d58f5f68cbc69697374878b43a3fb82829df97e8bce68bf937207038f85
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: notifly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedro Passalini
|
@@ -251,16 +251,9 @@ extensions: []
|
|
251
251
|
extra_rdoc_files:
|
252
252
|
- README.md
|
253
253
|
files:
|
254
|
-
- ".editorconfig"
|
255
|
-
- ".rspec"
|
256
|
-
- ".travis.yml"
|
257
|
-
- Gemfile
|
258
|
-
- Gemfile.lock
|
259
254
|
- MIT-LICENSE
|
260
255
|
- README.md
|
261
256
|
- Rakefile
|
262
|
-
- VERSION
|
263
|
-
- app/assets/images/notifly/.keep
|
264
257
|
- app/assets/javascripts/notifly.js
|
265
258
|
- app/assets/javascripts/notifly/counter.js.erb
|
266
259
|
- app/assets/javascripts/notifly/get_notifications.js.erb
|
@@ -299,67 +292,6 @@ files:
|
|
299
292
|
- lib/notifly/models/options/fly.rb
|
300
293
|
- lib/notifly/railtie.rb
|
301
294
|
- lib/tasks/notifly_tasks.rake
|
302
|
-
- spec/controllers/notifly/notifications_controller_spec.rb
|
303
|
-
- spec/dummy/README.rdoc
|
304
|
-
- spec/dummy/Rakefile
|
305
|
-
- spec/dummy/app/assets/images/.keep
|
306
|
-
- spec/dummy/app/assets/javascripts/application.js
|
307
|
-
- spec/dummy/app/assets/stylesheets/application.css
|
308
|
-
- spec/dummy/app/controllers/application_controller.rb
|
309
|
-
- spec/dummy/app/controllers/concerns/.keep
|
310
|
-
- spec/dummy/app/controllers/site_controller.rb
|
311
|
-
- spec/dummy/app/helpers/application_helper.rb
|
312
|
-
- spec/dummy/app/mailers/.keep
|
313
|
-
- spec/dummy/app/models/.keep
|
314
|
-
- spec/dummy/app/models/concerns/.keep
|
315
|
-
- spec/dummy/app/models/dummy_object.rb
|
316
|
-
- spec/dummy/app/models/post.rb
|
317
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
318
|
-
- spec/dummy/app/views/site/index.html.erb
|
319
|
-
- spec/dummy/bin/bundle
|
320
|
-
- spec/dummy/bin/rails
|
321
|
-
- spec/dummy/bin/rake
|
322
|
-
- spec/dummy/config.ru
|
323
|
-
- spec/dummy/config/application.rb
|
324
|
-
- spec/dummy/config/boot.rb
|
325
|
-
- spec/dummy/config/database.exemple.yml
|
326
|
-
- spec/dummy/config/database.travis.yml
|
327
|
-
- spec/dummy/config/environment.rb
|
328
|
-
- spec/dummy/config/environments/development.rb
|
329
|
-
- spec/dummy/config/environments/production.rb
|
330
|
-
- spec/dummy/config/environments/test.rb
|
331
|
-
- spec/dummy/config/initializers/assets.rb
|
332
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
333
|
-
- spec/dummy/config/initializers/cookies_serializer.rb
|
334
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
335
|
-
- spec/dummy/config/initializers/inflections.rb
|
336
|
-
- spec/dummy/config/initializers/mime_types.rb
|
337
|
-
- spec/dummy/config/initializers/session_store.rb
|
338
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
339
|
-
- spec/dummy/config/locales/en.yml
|
340
|
-
- spec/dummy/config/routes.rb
|
341
|
-
- spec/dummy/config/secrets.yml
|
342
|
-
- spec/dummy/db/migrate/20141031165049_create_dummy_objects.rb
|
343
|
-
- spec/dummy/db/migrate/20141103191353_create_posts.rb
|
344
|
-
- spec/dummy/db/migrate/20141104121318_add_dummy_to_post.rb
|
345
|
-
- spec/dummy/db/schema.rb
|
346
|
-
- spec/dummy/lib/assets/.keep
|
347
|
-
- spec/dummy/log/.keep
|
348
|
-
- spec/dummy/public/404.html
|
349
|
-
- spec/dummy/public/422.html
|
350
|
-
- spec/dummy/public/500.html
|
351
|
-
- spec/dummy/public/favicon.ico
|
352
|
-
- spec/dummy/spec/features/notifly/counter_spec.rb
|
353
|
-
- spec/dummy/spec/features/notifly/loading_notifications_spec.rb
|
354
|
-
- spec/dummy/spec/features/notifly/read_notifications_spec.rb
|
355
|
-
- spec/dummy/spec/models/dummy_object_spec.rb
|
356
|
-
- spec/dummy/spec/models/post_spec.rb
|
357
|
-
- spec/models/notifly/notification_spec.rb
|
358
|
-
- spec/rails_helper.rb
|
359
|
-
- spec/spec_helper.rb
|
360
|
-
- spec/support/shared_connection.rb
|
361
|
-
- spec/support/suppress_log.rb
|
362
|
-
- spec/support/wait_ajax.rb
|
363
295
|
- vendor/assets/javascripts/twitter/bootstrap.js
|
364
296
|
- vendor/assets/stylesheets/twitter/bootstrap.css
|
365
297
|
homepage: https://github.com/algorich/notifly
|
data/.editorconfig
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
[*]
|
2
|
-
indent_style = space
|
3
|
-
indent_size = 2
|
4
|
-
charset = utf-8
|
5
|
-
trim_trailing_whitespace = true
|
6
|
-
insert_final_newline = true
|
7
|
-
|
8
|
-
[*.rb]
|
9
|
-
indent_style = space
|
10
|
-
indent_size = 2
|
11
|
-
|
12
|
-
[Rakefile]
|
13
|
-
indent_style = space
|
14
|
-
indent_size = 2
|
15
|
-
|
16
|
-
[Gemfile*]
|
17
|
-
indent_style = space
|
18
|
-
indent_size = 2
|
19
|
-
|
20
|
-
[config.ru]
|
21
|
-
indent_style = space
|
22
|
-
indent_size = 2
|
data/.rspec
DELETED
data/.travis.yml
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
|
3
|
-
before_script:
|
4
|
-
- cp spec/dummy/config/database.travis.yml spec/dummy/config/database.yml
|
5
|
-
- psql -c 'create database travis_ci_test;' -U postgres
|
6
|
-
- bundle install
|
7
|
-
- bundle exec rake db:migrate
|
8
|
-
|
9
|
-
rvm:
|
10
|
-
- 2.0.0
|
11
|
-
- 2.1
|
12
|
-
|
13
|
-
script: bundle exec rspec spec
|
data/Gemfile
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gem 'rails', '~> 4'
|
4
|
-
gem 'jquery-rails', ['>= 3.0', '< 5']
|
5
|
-
gem 'kaminari', '~> 0.16.1'
|
6
|
-
gem 'font-awesome-rails', '~> 4.2.0'
|
7
|
-
|
8
|
-
group :development, :test do
|
9
|
-
gem 'pg'
|
10
|
-
gem 'rspec-rails', '~> 3.1.0'
|
11
|
-
gem 'capybara', '~> 2.4.4'
|
12
|
-
gem 'poltergeist', '~> 1.5.1'
|
13
|
-
gem 'shoulda-matchers', '~> 2.7.0'
|
14
|
-
gem 'pry-rails'
|
15
|
-
gem 'pry-rescue'
|
16
|
-
gem 'awesome_print'
|
17
|
-
gem 'launchy'
|
18
|
-
end
|
19
|
-
|
20
|
-
group :development do
|
21
|
-
gem 'better_errors'
|
22
|
-
gem 'binding_of_caller'
|
23
|
-
gem 'jeweler'
|
24
|
-
end
|
data/Gemfile.lock
DELETED
@@ -1,199 +0,0 @@
|
|
1
|
-
GEM
|
2
|
-
remote: https://rubygems.org/
|
3
|
-
specs:
|
4
|
-
actionmailer (4.1.8)
|
5
|
-
actionpack (= 4.1.8)
|
6
|
-
actionview (= 4.1.8)
|
7
|
-
mail (~> 2.5, >= 2.5.4)
|
8
|
-
actionpack (4.1.8)
|
9
|
-
actionview (= 4.1.8)
|
10
|
-
activesupport (= 4.1.8)
|
11
|
-
rack (~> 1.5.2)
|
12
|
-
rack-test (~> 0.6.2)
|
13
|
-
actionview (4.1.8)
|
14
|
-
activesupport (= 4.1.8)
|
15
|
-
builder (~> 3.1)
|
16
|
-
erubis (~> 2.7.0)
|
17
|
-
activemodel (4.1.8)
|
18
|
-
activesupport (= 4.1.8)
|
19
|
-
builder (~> 3.1)
|
20
|
-
activerecord (4.1.8)
|
21
|
-
activemodel (= 4.1.8)
|
22
|
-
activesupport (= 4.1.8)
|
23
|
-
arel (~> 5.0.0)
|
24
|
-
activesupport (4.1.8)
|
25
|
-
i18n (~> 0.6, >= 0.6.9)
|
26
|
-
json (~> 1.7, >= 1.7.7)
|
27
|
-
minitest (~> 5.1)
|
28
|
-
thread_safe (~> 0.1)
|
29
|
-
tzinfo (~> 1.1)
|
30
|
-
addressable (2.3.6)
|
31
|
-
arel (5.0.1.20140414130214)
|
32
|
-
awesome_print (1.2.0)
|
33
|
-
better_errors (2.0.0)
|
34
|
-
coderay (>= 1.0.0)
|
35
|
-
erubis (>= 2.6.6)
|
36
|
-
rack (>= 0.9.0)
|
37
|
-
binding_of_caller (0.7.2)
|
38
|
-
debug_inspector (>= 0.0.1)
|
39
|
-
builder (3.2.2)
|
40
|
-
capybara (2.4.4)
|
41
|
-
mime-types (>= 1.16)
|
42
|
-
nokogiri (>= 1.3.3)
|
43
|
-
rack (>= 1.0.0)
|
44
|
-
rack-test (>= 0.5.4)
|
45
|
-
xpath (~> 2.0)
|
46
|
-
cliver (0.3.2)
|
47
|
-
coderay (1.1.0)
|
48
|
-
debug_inspector (0.0.2)
|
49
|
-
descendants_tracker (0.0.4)
|
50
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
51
|
-
diff-lcs (1.2.5)
|
52
|
-
erubis (2.7.0)
|
53
|
-
faraday (0.9.0)
|
54
|
-
multipart-post (>= 1.2, < 3)
|
55
|
-
font-awesome-rails (4.2.0.0)
|
56
|
-
railties (>= 3.2, < 5.0)
|
57
|
-
git (1.2.8)
|
58
|
-
github_api (0.12.1)
|
59
|
-
addressable (~> 2.3)
|
60
|
-
descendants_tracker (~> 0.0.4)
|
61
|
-
faraday (~> 0.8, < 0.10)
|
62
|
-
hashie (>= 3.2)
|
63
|
-
multi_json (>= 1.7.5, < 2.0)
|
64
|
-
nokogiri (~> 1.6.3)
|
65
|
-
oauth2
|
66
|
-
hashie (3.3.1)
|
67
|
-
highline (1.6.21)
|
68
|
-
hike (1.2.3)
|
69
|
-
i18n (0.6.11)
|
70
|
-
interception (0.5)
|
71
|
-
jeweler (2.0.1)
|
72
|
-
builder
|
73
|
-
bundler (>= 1.0)
|
74
|
-
git (>= 1.2.5)
|
75
|
-
github_api
|
76
|
-
highline (>= 1.6.15)
|
77
|
-
nokogiri (>= 1.5.10)
|
78
|
-
rake
|
79
|
-
rdoc
|
80
|
-
jquery-rails (3.1.2)
|
81
|
-
railties (>= 3.0, < 5.0)
|
82
|
-
thor (>= 0.14, < 2.0)
|
83
|
-
json (1.8.1)
|
84
|
-
jwt (1.0.0)
|
85
|
-
kaminari (0.16.1)
|
86
|
-
actionpack (>= 3.0.0)
|
87
|
-
activesupport (>= 3.0.0)
|
88
|
-
launchy (2.4.3)
|
89
|
-
addressable (~> 2.3)
|
90
|
-
mail (2.6.3)
|
91
|
-
mime-types (>= 1.16, < 3)
|
92
|
-
method_source (0.8.2)
|
93
|
-
mime-types (2.4.3)
|
94
|
-
mini_portile (0.6.1)
|
95
|
-
minitest (5.4.3)
|
96
|
-
multi_json (1.10.1)
|
97
|
-
multi_xml (0.5.5)
|
98
|
-
multipart-post (2.0.0)
|
99
|
-
nokogiri (1.6.4.1)
|
100
|
-
mini_portile (~> 0.6.0)
|
101
|
-
oauth2 (1.0.0)
|
102
|
-
faraday (>= 0.8, < 0.10)
|
103
|
-
jwt (~> 1.0)
|
104
|
-
multi_json (~> 1.3)
|
105
|
-
multi_xml (~> 0.5)
|
106
|
-
rack (~> 1.2)
|
107
|
-
pg (0.17.1)
|
108
|
-
poltergeist (1.5.1)
|
109
|
-
capybara (~> 2.1)
|
110
|
-
cliver (~> 0.3.1)
|
111
|
-
multi_json (~> 1.0)
|
112
|
-
websocket-driver (>= 0.2.0)
|
113
|
-
pry (0.10.1)
|
114
|
-
coderay (~> 1.1.0)
|
115
|
-
method_source (~> 0.8.1)
|
116
|
-
slop (~> 3.4)
|
117
|
-
pry-rails (0.3.2)
|
118
|
-
pry (>= 0.9.10)
|
119
|
-
pry-rescue (1.4.1)
|
120
|
-
interception (>= 0.5)
|
121
|
-
pry
|
122
|
-
rack (1.5.2)
|
123
|
-
rack-test (0.6.2)
|
124
|
-
rack (>= 1.0)
|
125
|
-
rails (4.1.8)
|
126
|
-
actionmailer (= 4.1.8)
|
127
|
-
actionpack (= 4.1.8)
|
128
|
-
actionview (= 4.1.8)
|
129
|
-
activemodel (= 4.1.8)
|
130
|
-
activerecord (= 4.1.8)
|
131
|
-
activesupport (= 4.1.8)
|
132
|
-
bundler (>= 1.3.0, < 2.0)
|
133
|
-
railties (= 4.1.8)
|
134
|
-
sprockets-rails (~> 2.0)
|
135
|
-
railties (4.1.8)
|
136
|
-
actionpack (= 4.1.8)
|
137
|
-
activesupport (= 4.1.8)
|
138
|
-
rake (>= 0.8.7)
|
139
|
-
thor (>= 0.18.1, < 2.0)
|
140
|
-
rake (10.3.2)
|
141
|
-
rdoc (4.1.2)
|
142
|
-
json (~> 1.4)
|
143
|
-
rspec-core (3.1.7)
|
144
|
-
rspec-support (~> 3.1.0)
|
145
|
-
rspec-expectations (3.1.2)
|
146
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
147
|
-
rspec-support (~> 3.1.0)
|
148
|
-
rspec-mocks (3.1.3)
|
149
|
-
rspec-support (~> 3.1.0)
|
150
|
-
rspec-rails (3.1.0)
|
151
|
-
actionpack (>= 3.0)
|
152
|
-
activesupport (>= 3.0)
|
153
|
-
railties (>= 3.0)
|
154
|
-
rspec-core (~> 3.1.0)
|
155
|
-
rspec-expectations (~> 3.1.0)
|
156
|
-
rspec-mocks (~> 3.1.0)
|
157
|
-
rspec-support (~> 3.1.0)
|
158
|
-
rspec-support (3.1.2)
|
159
|
-
shoulda-matchers (2.7.0)
|
160
|
-
activesupport (>= 3.0.0)
|
161
|
-
slop (3.6.0)
|
162
|
-
sprockets (2.12.3)
|
163
|
-
hike (~> 1.2)
|
164
|
-
multi_json (~> 1.0)
|
165
|
-
rack (~> 1.0)
|
166
|
-
tilt (~> 1.1, != 1.3.0)
|
167
|
-
sprockets-rails (2.2.1)
|
168
|
-
actionpack (>= 3.0)
|
169
|
-
activesupport (>= 3.0)
|
170
|
-
sprockets (>= 2.8, < 4.0)
|
171
|
-
thor (0.19.1)
|
172
|
-
thread_safe (0.3.4)
|
173
|
-
tilt (1.4.1)
|
174
|
-
tzinfo (1.2.2)
|
175
|
-
thread_safe (~> 0.1)
|
176
|
-
websocket-driver (0.4.0)
|
177
|
-
xpath (2.0.0)
|
178
|
-
nokogiri (~> 1.3)
|
179
|
-
|
180
|
-
PLATFORMS
|
181
|
-
ruby
|
182
|
-
|
183
|
-
DEPENDENCIES
|
184
|
-
awesome_print
|
185
|
-
better_errors
|
186
|
-
binding_of_caller
|
187
|
-
capybara (~> 2.4.4)
|
188
|
-
font-awesome-rails (~> 4.2.0)
|
189
|
-
jeweler
|
190
|
-
jquery-rails (>= 3.0, < 5)
|
191
|
-
kaminari (~> 0.16.1)
|
192
|
-
launchy
|
193
|
-
pg
|
194
|
-
poltergeist (~> 1.5.1)
|
195
|
-
pry-rails
|
196
|
-
pry-rescue
|
197
|
-
rails (~> 4)
|
198
|
-
rspec-rails (~> 3.1.0)
|
199
|
-
shoulda-matchers (~> 2.7.0)
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.0.4
|
File without changes
|
@@ -1,44 +0,0 @@
|
|
1
|
-
require 'rails_helper'
|
2
|
-
|
3
|
-
RSpec.describe Notifly::NotificationsController, :type => :controller do
|
4
|
-
before(:each) { request.accept = Mime::JS }
|
5
|
-
|
6
|
-
describe 'GET count' do
|
7
|
-
it 'should return the Notifications#count for a receiver' do
|
8
|
-
receiver = DummyObject.create
|
9
|
-
other_receiver = DummyObject.create
|
10
|
-
|
11
|
-
Notifly::Notification.create! receiver: receiver, template: :default,
|
12
|
-
seen: false, read: true
|
13
|
-
Notifly::Notification.create! receiver: receiver, template: :default,
|
14
|
-
seen: false, read: true
|
15
|
-
Notifly::Notification.create! receiver: receiver, template: :default,
|
16
|
-
seen: false, read: true
|
17
|
-
Notifly::Notification.create! receiver: receiver, template: :default,
|
18
|
-
seen: true, read: true
|
19
|
-
|
20
|
-
2.times { Notifly::Notification.create! receiver: other_receiver, template: :default }
|
21
|
-
|
22
|
-
controller.send :counter
|
23
|
-
|
24
|
-
expect(response).to have_http_status(:success)
|
25
|
-
expect(assigns(:counter)).to eq(3)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
|
29
|
-
describe 'GET index' do
|
30
|
-
it 'should return notifications paginated' do
|
31
|
-
receiver = DummyObject.create
|
32
|
-
other_receiver = DummyObject.create
|
33
|
-
|
34
|
-
15.times { Notifly::Notification.create! receiver: receiver, template: :default,
|
35
|
-
read: [true, false].sample }
|
36
|
-
2.times { Notifly::Notification.create! receiver: other_receiver, template: :default }
|
37
|
-
|
38
|
-
controller.send :index
|
39
|
-
|
40
|
-
expect(response).to have_http_status(:success)
|
41
|
-
expect(assigns(:notifications).count).to eq(10)
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
data/spec/dummy/README.rdoc
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
== README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
25
|
-
|
26
|
-
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
28
|
-
<tt>rake doc:app</tt>.
|