Sha256: 86620666729d49f3712b78a93d441fa40dd8506a3f0efb07f5572db2095a2b5b

Contents?: true

Size: 368 Bytes

Versions: 35

Compression:

Stored size: 368 Bytes

Contents

require 'spec_helper'

describe "Supernova::SymbolExtensions" do
  [:not, :gt, :lt, :gte, :lte, :ne].each do |type|
    it "returns the correct condition for #{type}" do
      cond = :user_id.send(type)
      cond.key.should == :user_id
      cond.type.should == type
    end
  end
  
  it "sets the correct key" do
    :other_id.not.key.should == :other_id
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
supernova-0.7.6 spec/supernova/symbol_extensions_spec.rb
supernova-0.7.5 spec/supernova/symbol_extensions_spec.rb
supernova-0.7.4 spec/supernova/symbol_extensions_spec.rb
supernova-0.7.3 spec/supernova/symbol_extensions_spec.rb
supernova-0.7.2 spec/supernova/symbol_extensions_spec.rb
supernova-0.7.1 spec/supernova/symbol_extensions_spec.rb
supernova-0.7.0 spec/supernova/symbol_extensions_spec.rb
supernova-0.6.8 spec/supernova/symbol_extensions_spec.rb
supernova-0.6.7 spec/supernova/symbol_extensions_spec.rb
supernova-0.6.6 spec/supernova/symbol_extensions_spec.rb
supernova-0.6.5 spec/supernova/symbol_extensions_spec.rb
supernova-0.6.4 spec/supernova/symbol_extensions_spec.rb
supernova-0.6.3 spec/supernova/symbol_extensions_spec.rb
supernova-0.6.2 spec/supernova/symbol_extensions_spec.rb
supernova-0.6.1 spec/supernova/symbol_extensions_spec.rb
supernova-0.6.0 spec/supernova/symbol_extensions_spec.rb
supernova-0.4.18 spec/supernova/symbol_extensions_spec.rb
supernova-0.4.17 spec/supernova/symbol_extensions_spec.rb
supernova-0.4.16 spec/supernova/symbol_extensions_spec.rb
supernova-0.4.15 spec/supernova/symbol_extensions_spec.rb