Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mini_tester.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

class MiniTester < Minitest::Test
def test_1
assert true
assert false
end
end
8 changes: 4 additions & 4 deletions spec/dummy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@

describe 'My behaviour' do
it 'should do something' do
expect(4).to eql(4)
expect(4).to eql(5)
true.should == true
end

it 'should do something else as well' do
expect(4).to eql(4)
expect(4).to eql(5)
true.should == true
end
end

describe 'different behaviour' do
it 'should do something' do
expect(4).to eql(4)
expect(4).to eql(2)
true.should == true
end

it 'should do something else as well' do
expect(4).to eql(4)
expect(4).to eql(1)
true.should == true
end
end
8 changes: 4 additions & 4 deletions spec/other_dummy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@
describe 'My behaviour' do
it 'should do something' do
expect(4).to eql(4)
true.should == true
true.should == false
end

it 'should do something else as well' do
expect(4).to eql(4)
expect(2).to eql(4)
true.should == true
end
end

describe 'different behaviour' do
it 'should do something' do
expect(4).to eql(4)
true.should == true
true.should == false
end

it 'should do something else as well' do
expect(4).to eql(4)
expect(1).to eql(4)
true.should == true
end
end
6 changes: 3 additions & 3 deletions test_unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ def teardown
def test_fail
assert_equal(4, 4);
assert_equal(4, 4);
#fail('Not implemented')
fail('Not implemented')
end

def test_foo
assert_equal(4, 4);
assert_equal(4, 3);
assert_equal(2, 2)
end
end
Expand All @@ -32,7 +32,7 @@ class TestUnit2 < Test::Unit::TestCase

# Fake test
def test_x
assert_equal(3,3)
assert_equal(2,3)
end

end
6 changes: 3 additions & 3 deletions test_unit2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ def teardown
# Fake test
def test_fail

#fail('Not implemented')
fail('Not implemented')
end

def test_foo
assert_equal(2, 2)
assert_equal(2, 3)
end
end

class TestUnit4 < Test::Unit::TestCase

# Fake test
def test_x
assert_equal(3,3)
assert_equal(1,3)
end

end