Sha256: 3ffbad4fee542f01ae0fc52359874cff815ea0b5be65bee766a040bf35dd2630

Contents?: true

Size: 241 Bytes

Versions: 3

Compression:

Stored size: 241 Bytes

Contents

# encoding: utf-8

describe "Negation" do

  it "works" do
    blacklist = Selector.new except: /bar/
    selector = !blacklist

    expect(selector[:foo]).to eql(false)
    expect(selector[:bar]).to eql(true)
  end

end # describe Negation

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
selector-0.0.3 spec/integration/negation_spec.rb
selector-0.0.2 spec/integration/negation_spec.rb
selector-0.0.1 spec/integration/negation_spec.rb