Created
February 10, 2012 14:29
-
-
Save petrokoriakin/1789914 to your computer and use it in GitHub Desktop.
code sample describing the process of the spec initialization
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
describe 'Comment model', -> | |
beforeEach -> | |
@xhr = sinon.useFakeXMLHttpRequest() | |
@requests = [] | |
@xhr.onCreate = (xhr) => | |
@requests.push xhr | |
interaxt.comments = new interaxt.models.Comments() | |
afterEach -> | |
@xhr.restore | |
describe 'when the user is a PUBLISHER', -> | |
beforeEach -> | |
interaxt.showEvent = new interaxt.models.ShowEvent() | |
interaxt.showEvent.createModels @fake_show_event(interaxt.ShowRoles.HOST) | |
it 'should execute before_each blocks without an errors', -> | |
expect(true).toBeTruthy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment