Sha256: 5a9b0ecc25e31ce830b69ebad142b39c1f5cb76c76ddfee1e56fb242ccffd814

Contents?: true

Size: 381 Bytes

Versions: 9

Compression:

Stored size: 381 Bytes

Contents

require 'test_helper_dummy'

module UsersControllerTests
  extend ActiveSupport::Concern
  included do

    before { get :index }

    it 'works' do  
      assert_select 'h1', "All #{User.count} Users"
    end
    
  end
end

class UsersControllerTest < ActionController::TestCase
  include UsersControllerTests
end

describe UsersController do
  include UsersControllerTests
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
minitest-spec-rails-4.7.0 test/dummy_tests/users_controller_test.rb
minitest-spec-rails-4.3.8 test/dummy_tests/users_controller_test.rb
minitest-spec-rails-4.3.7 test/dummy_tests/users_controller_test.rb
minitest-spec-rails-4.3.6 test/dummy_tests/users_controller_test.rb
minitest-spec-rails-4.3.5 test/dummy_tests/users_controller_test.rb
minitest-spec-rails-4.3.4 test/dummy_tests/users_controller_test.rb
minitest-spec-rails-4.3.3 test/dummy_tests/users_controller_test.rb
minitest-spec-rails-4.3.2 test/dummy_tests/users_controller_test.rb
minitest-spec-rails-4.3.1 test/dummy_tests/users_controller_test.rb