File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ class InheritedReport < TranslatedReport
235235 end
236236 end
237237
238- describe "#select_options " do
238+ describe "#select_choices " do
239239 it "returns select options" do
240240 filters = {
241241 id : [ 1 , 2 ] ,
@@ -249,7 +249,7 @@ class InheritedReport < TranslatedReport
249249 end
250250 end
251251 filters . each do |name , options |
252- expect ( grid . select_options ( name ) ) . to eq ( options )
252+ expect ( grid . select_choices ( name ) ) . to eq ( options )
253253 expect ( grid . select_values ( name ) ) . to eq ( [ 1 , 2 ] )
254254 grid . select_all ( name )
255255 expect ( grid . public_send ( name ) ) . to eq ( [ 1 , 2 ] )
@@ -259,7 +259,7 @@ class InheritedReport < TranslatedReport
259259 it "raises ArgumentError for filter without options" do
260260 grid = test_grid_filter ( :id , :integer )
261261 expect do
262- grid . select_options ( :id )
262+ grid . select_choices ( :id )
263263 end . to raise_error ( Datagrid ::ArgumentError )
264264 end
265265 end
You can’t perform that action at this time.
0 commit comments