Sha256: cb570afe66d6cd8ed3001602371ce72c74107745c4a5adea39cb857b8ecda7ed

Contents?: true

Size: 791 Bytes

Versions: 7

Compression:

Stored size: 791 Bytes

Contents

HasFilterArticle.destroy_all
HasFilterCategory.destroy_all
HasFilterCategorization.destroy_all

first  = HasFilterArticle.create! :title => 'first',  :body => 'first',  :published => 1, :approved => 0, :tag_list => 'foo bar baz'
second = HasFilterArticle.create! :title => 'second', :body => 'second', :published => 1, :approved => 1, :tag_list => 'foo bar'
third  = HasFilterArticle.create! :title => 'third',  :body => 'third',  :published => 0, :approved => 0, :tag_list => 'foo'
third  = HasFilterArticle.create! :title => 'UPCASE',  :body => 'UPCASE',  :published => 0, :approved => 0, :tag_list => 'upcase'

foo = HasFilterCategory.create! :title => 'has_filter foo'
bar = HasFilterCategory.create! :title => 'has_filter bar'

first.categories  << foo << bar
second.categories << foo

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
adva-0.1.4 vendor/gems/has_filter/test/fixtures.rb
adva-0.1.3 vendor/gems/has_filter/test/fixtures.rb
adva-0.1.2 vendor/gems/has_filter/test/fixtures.rb
adva-0.1.1 vendor/gems/has_filter/test/fixtures.rb
adva-0.1.0 vendor/gems/has_filter/test/fixtures.rb
adva_cms-0.0.1 vendor/gems/has_filter/test/fixtures.rb
adva-0.0.1 adva_cms/vendor/gems/has_filter/test/fixtures.rb