cfoundry 0.4.12 → 0.4.13
Sign up to get free protection for your applications and to get access to all the features.
data/lib/cfoundry/version.rb
CHANGED
@@ -17,8 +17,9 @@ FactoryGirl.define do
|
|
17
17
|
end
|
18
18
|
|
19
19
|
after_build do |app, evaluator|
|
20
|
-
|
21
|
-
|
20
|
+
%w{name routes service_bindings}.each do |attr|
|
21
|
+
RR.stub(app).__send__(attr) { evaluator.send(attr) }
|
22
|
+
end
|
22
23
|
end
|
23
24
|
end
|
24
25
|
end
|
@@ -2,8 +2,19 @@ FactoryGirl.define do
|
|
2
2
|
factory :service_binding, :class => CFoundry::V2::ServiceBinding do
|
3
3
|
guid { FactoryGirl.generate(:guid) }
|
4
4
|
|
5
|
+
ignore do
|
6
|
+
app nil
|
7
|
+
service_instance nil
|
8
|
+
end
|
9
|
+
|
5
10
|
initialize_with do
|
6
11
|
CFoundry::V2::ServiceBinding.new(nil, nil)
|
7
12
|
end
|
13
|
+
|
14
|
+
after_build do |app, evaluator|
|
15
|
+
%w{app service_instance}.each do |attr|
|
16
|
+
RR.stub(app).__send__(attr) { evaluator.send(attr) }
|
17
|
+
end
|
18
|
+
end
|
8
19
|
end
|
9
20
|
end
|
@@ -3,8 +3,18 @@ FactoryGirl.define do
|
|
3
3
|
guid { FactoryGirl.generate(:guid) }
|
4
4
|
name { FactoryGirl.generate(:random_string) }
|
5
5
|
|
6
|
+
ignore do
|
7
|
+
service_bindings []
|
8
|
+
end
|
9
|
+
|
6
10
|
initialize_with do
|
7
11
|
CFoundry::V2::ServiceInstance.new(nil, nil)
|
8
12
|
end
|
13
|
+
|
14
|
+
after_build do |svc, evaluator|
|
15
|
+
%w{name service_bindings}.each do |attr|
|
16
|
+
RR.stub(svc).__send__(attr) { evaluator.send(attr) }
|
17
|
+
end
|
18
|
+
end
|
9
19
|
end
|
10
20
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfoundry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 13
|
10
|
+
version: 0.4.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Suraci
|