Sha256: 7221e7ee3466e2956fd28abc2290c1114b63605c9c6919ba0c27b1f2183e0491

Contents?: true

Size: 300 Bytes

Versions: 15

Compression:

Stored size: 300 Bytes

Contents

require 'spec_helper'

describe Restspec::Values::StatusCode do
  describe '#value' do
    it 'maps a string to a code' do
      expect(described_class.new(:ok).value).to eq(200)
    end

    it 'just return the same code' do
      expect(described_class.new(200).value).to eq(200)
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
restspec-0.3.2 spec/restspec/values/status_code_spec.rb
restspec-0.3.1 spec/restspec/values/status_code_spec.rb
restspec-0.3.0 spec/restspec/values/status_code_spec.rb
restspec-0.2.6 spec/restspec/values/status_code_spec.rb
restspec-0.2.5 spec/restspec/values/status_code_spec.rb
restspec-0.2.4 spec/restspec/values/status_code_spec.rb
restspec-0.2.3 spec/restspec/values/status_code_spec.rb
restspec-0.2.2 spec/restspec/values/status_code_spec.rb
restspec-0.2.1 spec/restspec/values/status_code_spec.rb
restspec-0.2 spec/restspec/values/status_code_spec.rb
restspec-0.1 spec/restspec/values/status_code_spec.rb
restspec-0.0.4 spec/restspec/values/status_code_spec.rb
restspec-0.0.3 spec/restspec/values/status_code_spec.rb
restspec-0.0.2 spec/restspec/values/status_code_spec.rb
restspec-0.0.1 spec/restspec/values/status_code_spec.rb