device_cloud 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
data/lib/device_cloud/version.rb
CHANGED
@@ -14,7 +14,7 @@ describe DeviceCloud::PushNotification::BaseNotification do
|
|
14
14
|
OpenStruct.new(
|
15
15
|
full_path: '/some/place/file_name.json',
|
16
16
|
data: data,
|
17
|
-
|
17
|
+
file_name: 'file_name.json'
|
18
18
|
)
|
19
19
|
end
|
20
20
|
|
@@ -55,14 +55,7 @@ describe DeviceCloud::PushNotification::BaseNotification do
|
|
55
55
|
|
56
56
|
describe "#file_name" do
|
57
57
|
context 'when id is present' do
|
58
|
-
its(:file_name) { should eq
|
59
|
-
end
|
60
|
-
|
61
|
-
context 'when id is nil' do
|
62
|
-
before(:each) do
|
63
|
-
data['id'] = nil
|
64
|
-
end
|
65
|
-
its(:file_name) { should eq '' }
|
58
|
+
its(:file_name) { should eq file_data.file_name}
|
66
59
|
end
|
67
60
|
end
|
68
61
|
end
|
data/spec/version_spec.rb
CHANGED