spec/column_spec.rb in magic_grid-0.12.3 vs spec/column_spec.rb in magic_grid-0.12.4
- old
+ new
@@ -43,10 +43,10 @@
context "for enabling/disabling search on #search() style collection" do
let(:collection) {
data = [1,2,3].tap do |c|
c.stub(:search) { c }
end
- MagicGrid::Collection.new(data, search_method: :search)
+ MagicGrid::Collection.new(data, :search_method => :search)
}
# I actually consider this a bug, since it is totally inconsistent, but
# it's how things are currently implemented.
it "doesn't disable searching, even when told so" do
display = [:name]
\ No newline at end of file