Skip to content

Instantly share code, notes, and snippets.

@linusthe3rd
Created March 14, 2011 02:22
Show Gist options
  • Select an option

  • Save linusthe3rd/868669 to your computer and use it in GitHub Desktop.

Select an option

Save linusthe3rd/868669 to your computer and use it in GitHub Desktop.
test "get collection of open programs" do
get :index, :camp_id => camps(:bolo).uri, :open => true
assert_response :success
programs = assigns(:programs)
programs.each do |program|
program.program_populations.each do |pop|
assert_not_equal pop.current_population, pop.max_population
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment