Sha256: 58c9a2c9ed28046afdf8a6f563355b86dfec90a535d3833abf23f205c62c36da
Contents?: true
Size: 535 Bytes
Versions: 2
Compression:
Stored size: 535 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), '..', '..', 'lib') require 'test/unit' require 'nitro' class TestControllerAspect < Test::Unit::TestCase # :nodoc: all include Nitro class TestController < Controller attr_reader :aflag, :tflag post "@aflag = 25", :on => :list def list @aflag = 3 end end def test_aspect ctx = Context.new(Server.new) ctx.instance_variable_set '@session', {} c = TestController.new(ctx) c.list_action assert_equal 25, c.aflag end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.27.0 | test/nitro/tc_controller_aspect.rb |
nitro-0.28.0 | test/nitro/tc_controller_aspect.rb |