deployments 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/deployments/dispatcher.rb +1 -1
- data/lib/deployments/version.rb +1 -1
- data/lib/tasks/deployments.rake +1 -1
- data/spec/dispatcher_spec.rb +9 -0
- metadata +1 -1
data/lib/deployments/version.rb
CHANGED
data/lib/tasks/deployments.rake
CHANGED
data/spec/dispatcher_spec.rb
CHANGED
@@ -40,6 +40,15 @@ describe Dispatcher do
|
|
40
40
|
dispatcher.run.should be_false
|
41
41
|
end
|
42
42
|
end
|
43
|
+
|
44
|
+
context "with invalid data" do
|
45
|
+
let(:fields) { { :key => nil } }
|
46
|
+
let(:response) { double('response', :response_code => 500) }
|
47
|
+
|
48
|
+
it "should unlucky send" do
|
49
|
+
dispatcher.run.should be_false
|
50
|
+
end
|
51
|
+
end
|
43
52
|
end
|
44
53
|
|
45
54
|
def curl_fields
|