Sha256: 2fc6078b41fc8b56947d99ec2048c4811a877ec151375985f2c26c9691e976e6

Contents?: true

Size: 190 Bytes

Versions: 7

Compression:

Stored size: 190 Bytes

Contents

# Example:
#   it { should have_received(:new).with(array_with_key(:name)) }
RSpec::Matchers.define :array_with_key do |expected|
  match do |actual|
    actual.has_key?(expected)
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bigbluebutton_rails-3.0.0 spec/support/matchers/array_with_key.rb
bigbluebutton_rails-2.3.0 spec/support/matchers/array_with_key.rb
bigbluebutton_rails-2.2.0 spec/support/matchers/array_with_key.rb
bigbluebutton_rails-2.1.0 spec/support/matchers/array_with_key.rb
bigbluebutton_rails-2.0.0 spec/support/matchers/array_with_key.rb
bigbluebutton_rails-1.4.0 spec/support/matchers/array_with_key.rb
bigbluebutton_rails-1.4.0.beta1 spec/support/matchers/array_with_key.rb