Sha256: e6c0c02d6ecb7a824ebd13bb5d1437de983148ce815b7ca0bdc15d972559ef5a

Contents?: true

Size: 394 Bytes

Versions: 9

Compression:

Stored size: 394 Bytes

Contents

require "spec_helper"
require "scorpion/rack"

describe Scorpion::Rack do
  it "it raises error when out of order" do
    klass = Class.new do
      include Scorpion::Rack

      def call( env )
        scorpion( env )
      end
    end

    expect do
      request = Rack::MockRequest.new( klass.new )
      request.get "/"
    end.to raise_error Scorpion::Rack::MissingScorpionError
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
scorpion-ioc-1.0.10 spec/lib/scorpion/rack_spec.rb
scorpion-ioc-1.0.8 spec/lib/scorpion/rack_spec.rb
scorpion-ioc-1.0.7 spec/lib/scorpion/rack_spec.rb
scorpion-ioc-1.0.6 spec/lib/scorpion/rack_spec.rb
scorpion-ioc-1.0.4 spec/lib/scorpion/rack_spec.rb
scorpion-ioc-1.0.3 spec/lib/scorpion/rack_spec.rb
scorpion-ioc-1.0.2 spec/lib/scorpion/rack_spec.rb
scorpion-ioc-1.0.1 spec/lib/scorpion/rack_spec.rb
scorpion-ioc-1.0.0 spec/lib/scorpion/rack_spec.rb