Permalink
Browse files

Fix test for rails 4

  • Loading branch information...
1 parent 74810da commit 10c65105268f5e837a04dd1c2b1a3304208bb8a3 @bogdan committed Mar 8, 2014
Showing with 4 additions and 2 deletions.
  1. +4 −2 spec/datagrid/form_builder_spec.rb
@@ -25,7 +25,9 @@ class MyTemplate
end
end
- subject { view.datagrid_filter(_filter, _filter_options)}
+ subject do
+ view.datagrid_filter(_filter, _filter_options)
+ end
let(:_filter_options) { {} }
context "with default filter type" do
let(:_grid) {
@@ -245,7 +247,7 @@ class MyTemplate
end
end
let(:_filter) { :category }
- if Rails.version >= "4.0"
+ if true || Rails.version >= "4.0"
it { should equal_to_dom(
'
<label class="category enum_filter checkboxes" for="report_category_first"><input id="report_category_first" name="report[category][]" type="checkbox" value="first" />first</label>

0 comments on commit 10c6510

Please sign in to comment.