I would like to assert (in rspec really) that at least one item in the tags
list is non-public.
it 'lets you select non-public tags' do
get :new
flag = false
assigns(:tags).each do |tag|
if tag.is_public == false
flag = true
end
end
flag.should eql true
end
What is a better, idiomatic way of doing the same?