Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it "shoulds get fields to filter" do
- ['SCADA','Wireless','GIS'].each do |domain|
- ['organizations','projects','people'].each do |model_type|
- @columns_wanted = ['id', 'name']
- get :select_filters, :domain => domain, :model_type => model_type , :columns_wanted => @columns_wanted
- response.should be_success
- response.should render_template(:select_filters)
- response.should have_tag(input, name)
- response.should_not have_tag(input, id)
- end
- end
- end
Add Comment
Please, Sign In to add comment