Created
August 29, 2008 05:55
-
-
Save nicksieger/7907 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
it "should allow assignable equivalents to be passed to a method" do | |
impl = DescendantOfSingleMethodInterface.impl {|name| name} | |
impl.should be_kind_of(SingleMethodInterface) | |
DescendantOfSingleMethodInterface.should === impl | |
UsesSingleMethodInterface.callIt(impl).should == :callIt | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment