test/dummy_tests/user_test.rb in minitest-spec-rails-4.7.11 vs test/dummy_tests/user_test.rb in minitest-spec-rails-5.0.0
- old
+ new
@@ -11,11 +11,11 @@
test 'works with test' do
user_ken.must_be_instance_of User
end
it 'allows custom assertions' do
- assert_blank '' if MiniTestSpecRails::Util.rails3?
+ assert_not false
end
describe 'nested 1' do
it('works') { skip }
@@ -36,22 +36,19 @@
end
class UserTest < ActiveSupport::TestCase
include UserTests
it 'reflects' do
- describing_class.must_equal UserTest
described_class.must_equal User
self.class.described_class.must_equal User
end
describe 'level 1' do
it 'reflects' do
- describing_class.must_equal UserTest
described_class.must_equal User
self.class.described_class.must_equal User
end
describe 'level 2' do
it 'reflects' do
- describing_class.must_equal UserTest
described_class.must_equal User
self.class.described_class.must_equal User
end
end
end