Permalink
Browse files

ADd xcfb for Jasmine; make sure network instance #write gets called […

…finishes #43626033]

Change-Id: Icaaef13fad341e3ab4091ef0a646c699f0154b67
  • Loading branch information...
1 parent 7eaee25 commit dcf41b91cc3193bc33715e6697cd1130f9ae1ed8 Bleicke and Tim Labeeuw committed Feb 8, 2013
Showing with 5 additions and 2 deletions.
  1. +3 −0 .travis.yml
  2. +2 −2 micro/spec/micro/api/route/network_interface_spec.rb
View
@@ -1,5 +1,8 @@
script: "cd micro && bundle exec rake spec assets:precompile jasmine:ci"
gemfile: micro/Gemfile
+before_install:
+ - "export DISPLAY=:99.0"
+ - "sh -e /etc/init.d/xvfb start"
rvm:
- 1.9.2
- 1.9.3
@@ -70,12 +70,12 @@
context 'when the interface has no name' do
let(:params) { valid_params.delete('name'); valid_params }
- before { VCAP::Micro::NetworkInterfacesFile.any_instance.stub(:write) }
+ before { VCAP::Micro::NetworkInterfacesFile.any_instance.should_receive(:write) }
it 'should default to eth0' do
VCAP::Micro.should_receive(:shell_raiser).with("ifdown eth0")
subject
end
end
end
-end
+end

0 comments on commit dcf41b9

Please sign in to comment.