Sha256: 9088d64d54217e0a03f9dd3e7cb7d6c55246949ab7579df750c48920b0d1ac58
Contents?: true
Size: 795 Bytes
Versions: 3
Compression:
Stored size: 795 Bytes
Contents
module BehaviorTestHelper class NoCacheBehavior < Behavior::Base register 'No Cache' description 'Turns caching off for testing.' def cache_page? false end end class TestBehavior < Behavior::Base register 'Test Behavior' description 'this is just a test behavior' define_tags do tag 'test1' do 'Hello world!' end end define_tags do tag 'test2' do 'Another test.' end end define_child_tags do tag 'test' do page.slug end end def page_headers { 'cool' => 'beans', 'request' => @request.inspect[20..30], 'response' => @response.inspect[20..31] } end def cache_page? false end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
radiant-0.5.0 | test/helpers/behavior_test_helper.rb |
radiant-0.5.1 | test/helpers/behavior_test_helper.rb |
radiant-0.5.2 | test/helpers/behavior_test_helper.rb |