Sha256: 59f98e71707c7a23d2a20eaadf97847a1e1dd5021ed10ed1666bf1dca4dfdf5d

Contents?: true

Size: 561 Bytes

Versions: 4

Compression:

Stored size: 561 Bytes

Contents

require File.dirname(__FILE__) + '/../test_helper'

class DefaultControllerTest < ActionController::TestCase

  tests DefaultController

  context "default controller" do
    setup do
      activate_authlogic
      @user = Factory(:user)
      login_as @user
    end

    context 'on GET to index' do
      # the default view calls some of the helpers
      # this is a sanity check to make sure they don't blow up
      setup do
        @user.activities << Factory(:activity)
        get :index
      end
      should_respond_with :success
    end

  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
muck-activities-0.1.8 test/rails_root/test/functional/default_controller_test.rb
muck-activities-0.1.9 test/rails_root/test/functional/default_controller_test.rb
muck-activities-0.1.10 test/rails_root/test/functional/default_controller_test.rb
muck-activities-0.1.11 test/rails_root/test/functional/default_controller_test.rb