Sha256: 8fb7798bcabdebe1092cf0485d9aa94b79dca263e7b0e6bfb52b2a501e1f1ab3

Contents?: true

Size: 497 Bytes

Versions: 15

Compression:

Stored size: 497 Bytes

Contents

require 'spec_helper'

RSpec.describe :categories, :type => :api do
  endpoint 'categories/create' do
    test do
      payload { schema_example(:category) }

      it { should have_status(:created) }
    end
  end

  endpoint 'categories/products', focus: true do
    test do
      # it { should have_status(:ok) }
      # it { should be_like_schema_array }
    end

    test 'with an unexisting category' do
      url_params id: '0'
      it { should have_status(:not_found) }
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
restspec-0.3.2 examples/store-api-tests/spec/api/category_spec.rb
restspec-0.3.1 examples/store-api-tests/spec/api/category_spec.rb
restspec-0.3.0 examples/store-api-tests/spec/api/category_spec.rb
restspec-0.2.6 examples/store-api-tests/spec/api/category_spec.rb
restspec-0.2.5 examples/store-api-tests/spec/api/category_spec.rb
restspec-0.2.4 examples/store-api-tests/spec/api/category_spec.rb
restspec-0.2.3 examples/store-api-tests/spec/api/category_spec.rb
restspec-0.2.2 examples/store-api-tests/spec/api/category_spec.rb
restspec-0.2.1 examples/store-api-tests/spec/api/category_spec.rb
restspec-0.2 examples/store-api-tests/spec/api/category_spec.rb
restspec-0.1 examples/store-api-tests/spec/api/category_spec.rb
restspec-0.0.4 examples/store-api-tests/spec/api/category_spec.rb
restspec-0.0.3 examples/store-api-tests/spec/api/category_spec.rb
restspec-0.0.2 examples/store-api-tests/spec/api/category_spec.rb
restspec-0.0.1 examples/store-api-tests/spec/api/category_spec.rb