Sha256: 5f7f3a38cba4c21d3ee97e464be808313b340f87a8174724a5abf9a7b6cd7dfa

Contents?: true

Size: 278 Bytes

Versions: 7

Compression:

Stored size: 278 Bytes

Contents

shared_examples_for 'an endpoint with token_authentication!' do |route_pairs|
  route_pairs.each do |route_pair|
    it "returns 401 for #{route_pair[0].upcase} #{route_pair[1]}" do
      send route_pair[0], route_pair[1]
      expect(response_code).to eq 401
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gris-0.4.7 lib/gris/generators/templates/scaffold/spec/support/shared_authentication_spec_helper.rb
gris-0.4.6 lib/gris/generators/templates/scaffold/spec/support/shared_authentication_spec_helper.rb
gris-0.4.5 lib/gris/generators/templates/scaffold/spec/support/shared_authentication_spec_helper.rb
gris-0.4.4 lib/gris/generators/templates/scaffold/spec/support/shared_authentication_spec_helper.rb
gris-0.4.3 lib/gris/generators/templates/scaffold/spec/support/shared_authentication_spec_helper.rb
gris-0.4.2 lib/gris/generators/templates/scaffold/spec/support/shared_authentication_spec_helper.rb
gris-0.4.0 lib/gris/generators/templates/scaffold/spec/support/shared_authentication_spec_helper.rb