Skip to content

Instantly share code, notes, and snippets.

@noili
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save noili/7cd28459a79aac92121d to your computer and use it in GitHub Desktop.

Select an option

Save noili/7cd28459a79aac92121d to your computer and use it in GitHub Desktop.
step_controller.rb
test "shold return all file records that are currently in an office" do
file_records = [file_records(:legal), file_records(:armas)]
get :index, file_record:
{q: {step_office_name_cont: 'Archivo'}}
assert response.body == file_records.to_json
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment