oass 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -99,16 +99,43 @@ describe Oass::Client do
99
99
 
100
100
  let(:client) { Oass::Client.new }
101
101
 
102
- context "with the required attributes" do
102
+ context "with just the required attributes" do
103
103
  let(:attributes) do
104
104
  {
105
- :id => "random_id_lolwut_wtf_shit",
105
+ :id => ("a".."z").to_a.shuffle.join,
106
+ :name => "LOLWUT",
107
+ :advertiser_id => "bobo",
108
+ :agency_id => "unknown_agency",
109
+ :product_id => "default-product",
110
+ :schedule => {
111
+ :impressions => 999,
112
+ :clicks => 0,
113
+ :completion => "S",
114
+ :priority_level => 1,
115
+ :reach => "O",
116
+ :smooth_or_asap => "S",
117
+ }
118
+ }
119
+ end
120
+
121
+ subject { client.create_campaign attributes }
122
+
123
+ its(:content) { should == "Successfully added." }
124
+ end
125
+
126
+ context "with valid attributes" do
127
+ let(:attributes) do
128
+ {
129
+ :id => ("a".."z").to_a.shuffle.join,
106
130
  :name => "LOLWUT",
107
131
  :advertiser_id => "bobo",
108
132
  :agency_id => "unknown_agency",
109
133
  :name => "LOLWUT",
110
134
  :campaign_manager => "lol",
111
135
  :product_id => "default-product",
136
+ :description => "lolwut",
137
+ :internal_quick_report => "short",
138
+ :external_quick_report => "short",
112
139
  :schedule => {
113
140
  :impressions => 999,
114
141
  :clicks => 0,
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oass
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rodrigo Navarro
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-26 00:00:00 -03:00
18
+ date: 2011-05-27 00:00:00 -03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency