bookingsync-engine 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bookingsync/engine/version.rb +1 -1
- data/spec/dummy/config/database.yml +8 -10
- data/spec/dummy/config/database.yml.travis +3 -0
- data/spec/dummy/db/schema.rb +2 -6
- data/spec/dummy/log/development.log +437 -0
- data/spec/dummy/log/test.log +6308 -0
- data/spec/models/account_spec.rb +6 -1
- data/spec/spec_helper.rb +7 -0
- metadata +14 -14
- data/spec/dummy/db/test.sqlite3 +0 -0
data/spec/models/account_spec.rb
CHANGED
@@ -72,7 +72,12 @@ RSpec.describe Account, type: :model do
|
|
72
72
|
end
|
73
73
|
|
74
74
|
context "when the stored token is expired" do
|
75
|
-
|
75
|
+
# comparing rails version, the use_transactional_fixtures only works pre 5
|
76
|
+
if Rails::VERSION::STRING.split(".").first.to_i >=5
|
77
|
+
self.use_transactional_tests = false
|
78
|
+
else
|
79
|
+
self.use_transactional_fixtures = false
|
80
|
+
end
|
76
81
|
|
77
82
|
let(:expires_at) { 1.day.ago.to_i.to_s }
|
78
83
|
let(:new_expires_at) { 2.days.from_now.to_i.to_s }
|
data/spec/spec_helper.rb
CHANGED
@@ -8,6 +8,13 @@ require 'pry-rails'
|
|
8
8
|
# Load support files
|
9
9
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
10
10
|
|
11
|
+
Shoulda::Matchers.configure do |config|
|
12
|
+
config.integrate do |with|
|
13
|
+
with.test_framework :rspec
|
14
|
+
with.library :rails
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
11
18
|
RSpec.configure do |config|
|
12
19
|
config.mock_with :rspec
|
13
20
|
config.use_transactional_fixtures = true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bookingsync-engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastien Grosjean
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-08-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -31,14 +31,14 @@ dependencies:
|
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.
|
34
|
+
version: 0.4.0
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.
|
41
|
+
version: 0.4.0
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: bookingsync-api
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -68,7 +68,7 @@ dependencies:
|
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name:
|
71
|
+
name: pg
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
@@ -82,7 +82,7 @@ dependencies:
|
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
|
-
name: rspec
|
85
|
+
name: guard-rspec
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - ">="
|
@@ -96,7 +96,7 @@ dependencies:
|
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
|
-
name:
|
99
|
+
name: rspec-rails
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - ">="
|
@@ -127,16 +127,16 @@ dependencies:
|
|
127
127
|
name: shoulda-matchers
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- - "
|
130
|
+
- - "~>"
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version: '0'
|
132
|
+
version: '3.0'
|
133
133
|
type: :development
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- - "
|
137
|
+
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version: '0'
|
139
|
+
version: '3.0'
|
140
140
|
description: A Rails engine to simplify integration with BookingSync API
|
141
141
|
email:
|
142
142
|
- dev@bookingsync.com
|
@@ -180,6 +180,7 @@ files:
|
|
180
180
|
- spec/dummy/config/application.rb
|
181
181
|
- spec/dummy/config/boot.rb
|
182
182
|
- spec/dummy/config/database.yml
|
183
|
+
- spec/dummy/config/database.yml.travis
|
183
184
|
- spec/dummy/config/environment.rb
|
184
185
|
- spec/dummy/config/environments/development.rb
|
185
186
|
- spec/dummy/config/environments/production.rb
|
@@ -196,7 +197,6 @@ files:
|
|
196
197
|
- spec/dummy/db/migrate/20140522110326_create_accounts.rb
|
197
198
|
- spec/dummy/db/migrate/20140522110454_add_o_auth_fields_to_accounts.rb
|
198
199
|
- spec/dummy/db/schema.rb
|
199
|
-
- spec/dummy/db/test.sqlite3
|
200
200
|
- spec/dummy/log/development.log
|
201
201
|
- spec/dummy/log/test.log
|
202
202
|
- spec/dummy/public/404.html
|
@@ -228,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
228
228
|
version: '0'
|
229
229
|
requirements: []
|
230
230
|
rubyforge_project:
|
231
|
-
rubygems_version: 2.
|
231
|
+
rubygems_version: 2.5.1
|
232
232
|
signing_key:
|
233
233
|
specification_version: 4
|
234
234
|
summary: A Rails engine to simplify integration with BookingSync API
|
@@ -249,6 +249,7 @@ test_files:
|
|
249
249
|
- spec/dummy/config/application.rb
|
250
250
|
- spec/dummy/config/boot.rb
|
251
251
|
- spec/dummy/config/database.yml
|
252
|
+
- spec/dummy/config/database.yml.travis
|
252
253
|
- spec/dummy/config/environment.rb
|
253
254
|
- spec/dummy/config/environments/development.rb
|
254
255
|
- spec/dummy/config/environments/production.rb
|
@@ -266,7 +267,6 @@ test_files:
|
|
266
267
|
- spec/dummy/db/migrate/20140522110326_create_accounts.rb
|
267
268
|
- spec/dummy/db/migrate/20140522110454_add_o_auth_fields_to_accounts.rb
|
268
269
|
- spec/dummy/db/schema.rb
|
269
|
-
- spec/dummy/db/test.sqlite3
|
270
270
|
- spec/dummy/log/development.log
|
271
271
|
- spec/dummy/log/test.log
|
272
272
|
- spec/dummy/public/404.html
|
data/spec/dummy/db/test.sqlite3
DELETED
Binary file
|