Sha256: 563fdfa5dfd49b743bdc7cc00e07403bd90e1de6fb500545ea84e027a4b79564
Contents?: true
Size: 930 Bytes
Versions: 16
Compression:
Stored size: 930 Bytes
Contents
# encoding: UTF-8 require 'helper' describe Keynote::Railtie do let(:controller) { HelloController.new } let(:context) { controller.view_context } it "should make the present and k methods available to controllers" do controller.must_respond_to :present controller.must_respond_to :k end it "should make the present and k methods available to views" do context.must_respond_to :present context.must_respond_to :k end it "should pass present call from controller to Keynote.present" do context = stub controller.stubs(:view_context).returns(context) Keynote.expects(:present).with(context, :dallas, :leeloo, :multipass) controller.present(:dallas, :leeloo, :multipass) end it "should pass present call from view to Keynote.present" do Keynote.expects(:present).with(context, :dallas, :leeloo, :multipass) context.present(:dallas, :leeloo, :multipass) end end
Version data entries
16 entries across 16 versions & 1 rubygems