Sha256: a6d73f64fd3afdca6557858bd0b1d24c6359ba8363442e88d9c2a30c383825d6
Contents?: true
Size: 491 Bytes
Versions: 21
Compression:
Stored size: 491 Bytes
Contents
require 'spec_helper' # example JSON output from request # {"links"=>{ # lists of route names and their uri templates # (e.g "page" => "/pages/{url_slug}") # }, # "data"=> # {} describe "resources#index", :type => :request do describe "GET /resources" do it "shows route templates asjson" do json_get "/resources" expect(response).to be_success expect(parse_json(response.body,"links/validate_token")).to eq("/users/validate_token") end end end
Version data entries
21 entries across 21 versions & 1 rubygems