Sha256: 747f41b9ddb306d756b7f887c5a0ee1056d511ab85c50655e53f188c017c6c22
Contents?: true
Size: 871 Bytes
Versions: 81
Compression:
Stored size: 871 Bytes
Contents
require 'test_helper' module Vedeu describe ApplicationController do let(:described) { Vedeu::ApplicationController } let(:instance) { described.new(params) } let(:params) { {} } describe '#initialize' do subject { instance } it { subject.must_be_instance_of(described) } it { subject.instance_variable_get('@params').must_equal(params) } end describe '#redirect_to' do let(:controller) {} let(:action) {} let(:params) { {} } before { Vedeu.stubs(:trigger) } subject { instance.redirect_to(controller, action, params) } it { Vedeu.expects(:trigger).with(:_goto_, controller, action, params) subject } it { instance.must_respond_to(:redirect) } it { instance.must_respond_to(:goto) } end end # ApplicationController end # Vedeu
Version data entries
81 entries across 81 versions & 1 rubygems