Sha256: e5825ab1254b705bad55a3660e399a73ff936117c160eb3d77a0dc57bf32d560

Contents?: true

Size: 415 Bytes

Versions: 30

Compression:

Stored size: 415 Bytes

Contents

require_relative "../spec_helper"

describe "symbol_status plugin" do
  it "accepts a symbol" do
    app(:symbol_status) do |r|
      r.on do
        response.status = :unauthorized
        nil
      end
    end

    status.must_equal 401
  end

  it "accepts a fixnum" do
    app(:symbol_status) do |r|
      r.on do
        response.status = 204
        nil
      end
    end

    status.must_equal 204
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
roda-3.28.0 spec/plugin/symbol_status_spec.rb
roda-3.27.0 spec/plugin/symbol_status_spec.rb
roda-3.26.0 spec/plugin/symbol_status_spec.rb
roda-3.25.0 spec/plugin/symbol_status_spec.rb
roda-3.24.0 spec/plugin/symbol_status_spec.rb
roda-3.23.0 spec/plugin/symbol_status_spec.rb
roda-3.22.0 spec/plugin/symbol_status_spec.rb
roda-3.21.0 spec/plugin/symbol_status_spec.rb
roda-3.20.0 spec/plugin/symbol_status_spec.rb
roda-3.19.0 spec/plugin/symbol_status_spec.rb
roda-3.18.0 spec/plugin/symbol_status_spec.rb
roda-3.17.0 spec/plugin/symbol_status_spec.rb
roda-3.16.0 spec/plugin/symbol_status_spec.rb
roda-3.15.0 spec/plugin/symbol_status_spec.rb
roda-3.14.1 spec/plugin/symbol_status_spec.rb
roda-3.14.0 spec/plugin/symbol_status_spec.rb
roda-3.13.0 spec/plugin/symbol_status_spec.rb
roda-3.12.0 spec/plugin/symbol_status_spec.rb
roda-3.11.0 spec/plugin/symbol_status_spec.rb
roda-3.10.0 spec/plugin/symbol_status_spec.rb