notifiable-rails 0.19.5 → 0.19.6

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: notifiable-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.5
4
+ version: 0.19.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamil Kocemba
@@ -196,7 +196,6 @@ files:
196
196
  - lib/tasks/brakeman.rake
197
197
  - LICENSE
198
198
  - Rakefile
199
- - spec/active_record_spec.rb
200
199
  - spec/controllers/device_tokens_controller_spec.rb
201
200
  - spec/controllers/notifications_controller_spec.rb
202
201
  - spec/notifiable_app_spec.rb
@@ -276,7 +275,6 @@ signing_key:
276
275
  specification_version: 4
277
276
  summary: Rails engine to make push notifications a bit easier.
278
277
  test_files:
279
- - spec/active_record_spec.rb
280
278
  - spec/controllers/device_tokens_controller_spec.rb
281
279
  - spec/controllers/notifications_controller_spec.rb
282
280
  - spec/notifiable_app_spec.rb
@@ -1,16 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe ActiveRecord::Base do
4
-
5
- let(:notification_status) { FactoryGirl.build(:notification_status) }
6
- let(:notification_status2) { FactoryGirl.build(:notification_status) }
7
-
8
- it "generates correct Oracle Enchanced Bulk SQL" do
9
- date = DateTime.now
10
- sql = Notifiable::NotificationStatus.send(:oracle_bulk_insert_sql,
11
- [{notification_id: notification_status.notification.id, device_token_id: notification_status.device_token.id, status: 0, created_at: date},
12
- {notification_id: notification_status2.notification.id, device_token_id: notification_status2.device_token.id, status: 0, created_at: date}])
13
-
14
- sql.should eql "INSERT ALL INTO notifiable_statuses (created_at, device_token_id, notification_id, status) VALUES (#{ActiveRecord::Base.connection.quote(date)}, 1, 1, 0) INTO notifiable_statuses (created_at, device_token_id, notification_id, status) VALUES (#{ActiveRecord::Base.connection.quote(date)}, 2, 2, 0) SELECT 1 FROM DUAL;"
15
- end
16
- end