Sha256: b4c02c09fc91aa603212444788a7c1cff50df9b1772aec113fee892fd514c6f7

Contents?: true

Size: 218 Bytes

Versions: 12

Compression:

Stored size: 218 Bytes

Contents

require 'spec_helper'

RSpec.describe ResourceKit::StatusCodeMapper do
  describe '.code_for' do
    it 'returns the status code for a symbol' do
      expect(described_class.code_for(:ok)).to eq(200)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
resource_kit-0.1.8 spec/lib/resource_kit/status_code_mapper_spec.rb
resource_kit-0.1.7 spec/lib/resource_kit/status_code_mapper_spec.rb
resource_kit-0.1.6 spec/lib/resource_kit/status_code_mapper_spec.rb
resource_kit-0.1.5 spec/lib/resource_kit/status_code_mapper_spec.rb
resource_kit-0.1.4 spec/lib/resource_kit/status_code_mapper_spec.rb
resource_kit-0.1.3 spec/lib/resource_kit/status_code_mapper_spec.rb
resource_kit-0.1.2 spec/lib/resource_kit/status_code_mapper_spec.rb
resource_kit-0.1.1 spec/lib/resource_kit/status_code_mapper_spec.rb
resource_kit-0.1.0 spec/lib/resource_kit/status_code_mapper_spec.rb
resource_kit-0.0.5 spec/lib/resource_kit/status_code_mapper_spec.rb
resource_kit-0.0.3 spec/lib/resource_kit/status_code_mapper_spec.rb
resource_kit-0.0.1 spec/lib/resource_kit/status_code_mapper_spec.rb