Sha256: 3425546d190fa712520041fd20a908081d5cfb1055c0773b187b4d509f6fcc03
Contents?: true
Size: 874 Bytes
Versions: 5
Compression:
Stored size: 874 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 do Vedeu.expects(:trigger).with(:_goto_, controller, action, params) subject end it { instance.must_respond_to(:redirect) } it { instance.must_respond_to(:goto) } end end # ApplicationController end # Vedeu
Version data entries
5 entries across 5 versions & 1 rubygems