Created
          November 16, 2012 08:11 
        
      - 
      
 - 
        
Save certainty/4085371 to your computer and use it in GitHub Desktop.  
    foo
  
        
  
    
      This file contains hidden or 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
    
  
  
    
  | shared_examples "foo" do |a,args| | |
| it "is true" do | |
| true.should be_true | |
| end | |
| end | |
| describe "some context" do | |
| def self.user | |
| :user | |
| end | |
| def self.valid_args | |
| { :foo => "bar", :baz => user } | |
| end | |
| %(foo bar baz).each do |a| | |
| it_should_behave_like "foo", a,valid_args | |
| end | |
| end | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment