Sha256: fb55015f39bf1463dd1e93e80bad4c810937010ee639badf6ed176e2d702be28

Contents?: true

Size: 426 Bytes

Versions: 11

Compression:

Stored size: 426 Bytes

Contents

require 'spec_helper'

describe SimpleAdmin::Filters do
  before :each do
    @interface = SimpleAdmin.register(:thing)
    @section = @interface.send(:section, :index)
    @filters = SimpleAdmin::Filters.new(@interface, @section)
  end

  it "allows new filter definitions and treats them like attributes" do
    @filters.clear
    @filters.filter(:name)
    @filters.attributes.map(&:attribute).should == [:name]
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
simple_admin-0.7.1 spec/simple_admin/filters_spec.rb
simple_admin-0.6.0 spec/simple_admin/filters_spec.rb
simple_admin-0.5.2 spec/simple_admin/filters_spec.rb
simple_admin-0.5.1 spec/simple_admin/filters_spec.rb
simple_admin-0.5.0 spec/simple_admin/filters_spec.rb
simple_admin-0.4.1 spec/simple_admin/filters_spec.rb
simple_admin-0.4.0 spec/simple_admin/filters_spec.rb
simple_admin-0.3.1 spec/simple_admin/filters_spec.rb
simple_admin-0.3.0 spec/simple_admin/filters_spec.rb
simple_admin-0.2.1 spec/simple_admin/filters_spec.rb
simple_admin-0.1.0 spec/simple_admin/filters_spec.rb