Created
February 10, 2012 14:32
-
-
Save petrokoriakin/1789924 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 -> | |
interaxt.SHOW_HOST = 'testhost' | |
@xhr = sinon.useFakeXMLHttpRequest() | |
@requests = [] | |
@xhr.onCreate = (xhr) => | |
@requests.push xhr | |
afterEach -> | |
@xhr.restore | |
describe 'when the user is a PUBLISHER', -> | |
beforeEach -> | |
stateUrl = '/testhost/s' | |
interaxt.init() | |
@requests[0].respond 200, {'Content-Type': 'application/json'}, @stringify_response(@fixtures.ShowEvents.show_event) | |
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