Sha256: ad1b6d0ecaf29853ed88a4462aca626308cddd44257155374881cc9a80dcab8e

Contents?: true

Size: 455 Bytes

Versions: 1

Compression:

Stored size: 455 Bytes

Contents

module RSpec
  module LiveControllers
    module Matchers
      class HaveChunk < Base
        def regexp(reg)
          /#{reg}/
        end

        def failure_message
          "Expect «#{response_body}» to have chunk: «#{list_of_matchers.join(' or ')}»."
        end

        def failure_message_when_negated
          "Expect «#{response_body}» not to have chunk: «#{list_of_matchers.join(' or ')}»."
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-live_controllers-0.0.1 lib/rspec/live_controllers/matchers/have_chunk.rb