dotmailer 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,32 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe Dotmailer::DataField do
4
- let(:name) { 'FIRSTNAME' }
5
- let(:type) { 'String' }
6
- let(:visibility) { 'Public' }
7
- let(:default) { 'John' }
8
-
9
- let(:attributes) do
10
- {
11
- 'name' => name,
12
- 'type' => type,
13
- 'visibility' => visibility,
14
- 'defaultValue' => default
15
- }
16
- end
17
-
18
- subject { Dotmailer::DataField.new(attributes) }
19
-
20
- its(:name) { should == name }
21
- its(:type) { should == type }
22
- its(:visibility) { should == visibility }
23
- its(:default) { should == default }
24
-
25
- its(:to_s) { should == 'Dotmailer::DataField name: "FIRSTNAME", type: "String", visibility: "Public", default: "John"' }
26
-
27
- its(:to_json) { should == attributes.to_json }
28
-
29
- describe '#==' do
30
- specify { subject.should == Dotmailer::DataField.new(attributes) }
31
- end
32
- end