foreman-docker / test / functionals / containers_steps_controller_test.rb @ 3bc253a2
1 |
require 'test_plugin_helper'
|
---|---|
2 |
|
3 |
module Containers |
4 |
class StepsControllerTest < ActionController::TestCase |
5 |
test 'setting a docker image and tag for a new container' do |
6 |
@container = FactoryGirl.create(:container) |
7 |
put :update, :id => :image, |
8 |
:container_id => @container, |
9 |
:image => "centos", |
10 |
:container => { :tag => "latest" } |
11 |
assert_response 302
|
12 |
assert_equal "latest", @container.reload.tag |
13 |
assert_equal "centos", @container.image |
14 |
end
|
15 |
end
|
16 |
end
|