Sha256: 1e2ffb721d35cd3826761417e2d8b7812b69db6e05e1a350249b6c806e134c9f
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 Bytes
Contents
require 'helper' class ControllerAdditionsTest < ActiveSupport::TestCase setup do @controller_class = Class.new @controller = @controller_class.new @controller_class.send(:include, Stepper::ControllerAdditions) end test "should has_steps setup before filter which passes call to ControllerResource" do Stepper::ControllerResource.stubs(:new).with(@controller, nil).stubs(:load_resource) @controller_class.stubs(:before_filter).with(:only => [:create, :update, :new, :next_step]) @controller_class.has_steps end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stepper-0.2.0 | test/controllers/controller_additions_test.rb |
stepper-0.1.0 | test/controllers/controller_additions_test.rb |