Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe "outer level", :action => 'create', :verb => 'post' do
- it "can access the metadata in the example" do
- example.metadata.should include(:action => 'create', :verb => 'post')
- end
- it "can override the metadata for a specific spec", :verb => 'get' do
- example.metadata.should include(:action => 'create', :verb => 'get')
- end
- context "with some of the metadata overriden", :action => 'destroy' do
- it "can access the overriden metadata" do
- example.metadata.should include(:action => 'destroy', :verb => 'post')
- end
- end
- end
Add Comment
Please, Sign In to add comment