Skip to content

Instantly share code, notes, and snippets.

@nicksieger
Created August 29, 2008 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicksieger/7907 to your computer and use it in GitHub Desktop.
Save nicksieger/7907 to your computer and use it in GitHub Desktop.
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