Guest User

Untitled

a guest
Jun 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. describe "outer level", :action => 'create', :verb => 'post' do
  2. it "can access the metadata in the example" do
  3. example.metadata.should include(:action => 'create', :verb => 'post')
  4. end
  5.  
  6. it "can override the metadata for a specific spec", :verb => 'get' do
  7. example.metadata.should include(:action => 'create', :verb => 'get')
  8. end
  9.  
  10. context "with some of the metadata overriden", :action => 'destroy' do
  11. it "can access the overriden metadata" do
  12. example.metadata.should include(:action => 'destroy', :verb => 'post')
  13. end
  14. end
  15. end
Add Comment
Please, Sign In to add comment