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

Version Path
xing-framework-1.0.0.pre.beta.1 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-1.0.0.pre.beta default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-1.0.0.pre.alpha default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-0.3.2 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-0.3.1 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-0.3.0 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-0.2.9 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-0.2.9.beta1 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-0.2.8 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-0.2.8.beta1 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-0.2.7 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-0.2.7.pre.beta1 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-0.2.6 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-0.2.5 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-0.2.4 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-0.2.3 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-0.2.2 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-0.2.1 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-0.2.0 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb
xing-framework-0.0.3 default_configuration/base_app/backend/spec/requests/resources_index_spec.rb