Guest User

Untitled

a guest
May 20th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. it "shoulds get fields to filter" do
  2. ['SCADA','Wireless','GIS'].each do |domain|
  3. ['organizations','projects','people'].each do |model_type|
  4. @columns_wanted = ['id', 'name']
  5. get :select_filters, :domain => domain, :model_type => model_type , :columns_wanted => @columns_wanted
  6. response.should be_success
  7. response.should render_template(:select_filters)
  8. response.should have_tag(input, name)
  9. response.should_not have_tag(input, id)
  10. end
  11. end
  12. end
Add Comment
Please, Sign In to add comment