Created
January 7, 2012 03:08
-
-
Save ppworks/1573639 to your computer and use it in GitHub Desktop.
check ancestors for RSpec
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
def ancestors_should_include ancestors | |
describe 'ancestors' do | |
ancestors.each do |ancestor| | |
it {subject.class.ancestors.should be_include ancestor} | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment