Project

General

Profile

« Previous | Next » 

Revision feacea35

Added by Amos Benari about 11 years ago

  • ID feacea35f07f362d9e2c694a83516bbc902321a0

upgrade foreman to rails 3.2.13

This commit updates from rails 3.0.x to 3.2.x, main changes include:

  • Asset pipline support
  • cleanup of existing assets (javascript, css, images)

Users who uses foreman in production, make sure that you now compile
your assets, e.g

rake assets:precompile

Paired-with: Joseph Mitchell Magen <>
Paired-with: Ohad Levy <>

Signed-off-by: Ohad Levy <>

View differences:

test/unit/host_test.rb
test "custom_disk_partition_with_erb" do
h = hosts(:one)
h.disk = "<%= 1 + 1 %>"
h.save
assert h.save
assert h.disk.present?
assert_equal "2", h.diskLayout
end
......
pc = puppetclasses(:two)
h.puppetclasses << pc
assert !h.environment.puppetclasses.include?(pc)
assert !h.environment.puppetclasses.map(&:id).include?(pc.id)
assert !h.valid?
assert_equal ["#{pc} does not belong to the #{h.environment} environment"], h.errors[:puppetclasses]
end

Also available in: Unified diff