Browse files

select a page part filter from the existing list

  • Loading branch information...
1 parent 272fe5b commit 649b5970cfa24e73647058b6a09abcb931f464b5 @saturnflyer saturnflyer committed Mar 5, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 spec/models/page_part_spec.rb
View
5 spec/models/page_part_spec.rb
@@ -22,9 +22,10 @@
it "shouldn't override existing page_parts filters with the default filter" do
part = PagePart.find(:first, :conditions => {:filter_id => nil})
- Radiant::Config['defaults.page.filter'] = "Textile"
+ selected_filter_name = TextFilter.descendants.first.filter_name
+ Radiant::Config['defaults.page.filter'] = selected_filter_name
part.reload
- part.filter_id.should_not == "Textile"
+ part.filter_id.should_not == selected_filter_name
end
it 'should validate length of' do

0 comments on commit 649b597

Please sign in to comment.