Sha256: d3e08700e3c83a4f1a429971256d89b2587fa6d45d4d1a41ec65a51128413b32

Contents?: true

Size: 521 Bytes

Versions: 4

Compression:

Stored size: 521 Bytes

Contents

require 'test_helper_dummy'

module UserTests
  extend ActiveSupport::Concern
  included do

    it 'works' do
      user_ken.must_be_instance_of User
    end

    it 'allows custom assertions' do
      assert_blank '' if MiniTestSpecRails::Util.rails3?
    end

    describe 'nested 1' do

      it('works') { skip }

      describe 'nested 2' do

        it('works') { skip }

      end

    end
    
  end
end

class UserTest < ActiveSupport::TestCase
  include UserTests
end

describe User do
  include UserTests
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
minitest-spec-rails-4.3.4 test/dummy_tests/user_test.rb
minitest-spec-rails-4.3.3 test/dummy_tests/user_test.rb
minitest-spec-rails-4.3.2 test/dummy_tests/user_test.rb
minitest-spec-rails-4.3.1 test/dummy_tests/user_test.rb