Sha256: 03ee079be247b7763db82d6fce180e5d4ba4917202bff14c7ec00b677d0455e4
Contents?: true
Size: 663 Bytes
Versions: 6
Compression:
Stored size: 663 Bytes
Contents
require 'spec_helper' describe Commontator::ApplicationController do before do @controller = Commontator::ApplicationController.new end it 'must get user' do @controller.send :get_user @user.must_be_nil user = DummyUser.create sign_in user @controller.send :get_user @user.must_equal user @user.is_commontator.must_equal true end it 'must get thread' do @controller.send :get_thread @thread.must_be_instance_of Commontator::Thread end it 'must get commontable url' do @controller.send :get_thread @controller.send :get_commontable_url @commontable_url.must_equal 'a' end end
Version data entries
6 entries across 6 versions & 1 rubygems