Parent

Files

Class Index [+]

Quicksearch

Ubiquo::Filters::UbiquoFilterTestCase

Helper class to easy the filter testing.

Public Class Methods

new(*args) click to toggle source

(Not documented)

    # File vendor/plugins/ubiquo_core/lib/ubiquo/filters/ubiquo_filter_test_case.rb, line 54
54:       def initialize(*args)
55:         ::ActionController::Routing::Routes.draw { |map| map.resources :tests }
56:         @model = FilterTestModel.create
57:         load_test_data
58:         @context = FakeContext.new
59:         super(*args)
60:       end

Public Instance Methods

load_test_data() click to toggle source

(Not documented)

    # File vendor/plugins/ubiquo_core/lib/ubiquo/filters/ubiquo_filter_test_case.rb, line 62
62:       def load_test_data
63:         [
64:          { :title => 'Yesterday loot was cool',
65:            :description => 'òuch réally?',
66:            :published_at => Date.today,
67:            :status => true
68:          },
69:          { :title => 'Today is the new yesterday. NIÑA',
70:            :description => 'bah loot',
71:            :published_at => Date.today,
72:            :status => false
73:          },
74:          { :title => 'Tíred',
75:            :description => 'stop',
76:            :published_at => Date.tomorrow,
77:            :status => false
78:          }
79:         ].each { |attrs| @model.create(attrs) }
80:       end

Disabled; run with $DEBUG to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.