Last active
December 18, 2015 08:39
-
-
Save mizoR/5755832 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
class Bar | |
end | |
class Baz | |
end | |
class Foo < Bar | |
end | |
describe do | |
it 'Foo は Barを継承していること' do | |
Foo.should < Bar | |
end | |
it 'Bar は Fooに継承されていること' do | |
Bar.should > Foo | |
end | |
it 'Foo は Bazを継承していないこと' do | |
Foo.should_not < Baz | |
end | |
end | |
# $ bundle exec rspec app_spec.rb | |
# ... | |
# | |
# Finished in 0.00044 seconds | |
# 3 examples, 0 failures |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment