Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
ADd xcfb for Jasmine; make sure network instance #write gets called […
Browse files Browse the repository at this point in the history
…finishes #43626033]

Change-Id: Icaaef13fad341e3ab4091ef0a646c699f0154b67
  • Loading branch information
Bleicke and Tim Labeeuw committed Feb 8, 2013
1 parent 7eaee25 commit dcf41b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions micro/spec/micro/api/route/network_interface_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.