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