Sha256: a1dde215b9876d986541b5aa85babfc00181ef53eb96aa6fcb90cc657e623035

Contents?: true

Size: 1004 Bytes

Versions: 64

Compression:

Stored size: 1004 Bytes

Contents

require File.join(File.dirname(File.expand_path(__FILE__)), 'spec_helper')

describe Sequel::Inflections do
  before do
    @plurals, @singulars, @uncountables = Sequel.inflections.plurals.dup, Sequel.inflections.singulars.dup, Sequel.inflections.uncountables.dup
  end
  after do
    Sequel.inflections.plurals.replace(@plurals)
    Sequel.inflections.singulars.replace(@singulars)
    Sequel.inflections.uncountables.replace(@uncountables)
  end

  it "should be possible to clear the list of singulars, plurals, and uncountables" do
    Sequel.inflections.clear(:plurals)
    Sequel.inflections.plurals.should == []
    Sequel.inflections.plural('blah', 'blahs')
    Sequel.inflections.clear
    Sequel.inflections.plurals.should == []
    Sequel.inflections.singulars.should == []
    Sequel.inflections.uncountables.should == []
  end

  it "should be yielded and returned by Sequel.inflections" do
    Sequel.inflections{|i| i.should == Sequel::Inflections}.should == Sequel::Inflections
  end
end

Version data entries

64 entries across 64 versions & 2 rubygems

Version Path
sequel-4.22.0 spec/model/inflector_spec.rb
sequel-4.21.0 spec/model/inflector_spec.rb
sequel-4.20.0 spec/model/inflector_spec.rb
sequel-4.19.0 spec/model/inflector_spec.rb
sequel-4.18.0 spec/model/inflector_spec.rb
sequel-4.17.0 spec/model/inflector_spec.rb
sequel-4.16.0 spec/model/inflector_spec.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/model/inflector_spec.rb
sequel-4.15.0 spec/model/inflector_spec.rb
sequel-4.14.0 spec/model/inflector_spec.rb
sequel-4.13.0 spec/model/inflector_spec.rb
sequel-4.12.0 spec/model/inflector_spec.rb
sequel-4.11.0 spec/model/inflector_spec.rb
sequel-4.10.0 spec/model/inflector_spec.rb
sequel-4.9.0 spec/model/inflector_spec.rb
sequel-4.8.0 spec/model/inflector_spec.rb
sequel-4.7.0 spec/model/inflector_spec.rb
sequel-4.6.0 spec/model/inflector_spec.rb
sequel-4.5.0 spec/model/inflector_spec.rb
sequel-4.4.0 spec/model/inflector_spec.rb