jSpec is a JavaScript BDD Framework.
Questions tagged [jspec]
7 questions
8
votes
1 answer
JSpec - RangeError: Maximum call stack size exceeded
With my two attempts at getting a message posted to the JSpec Google Group having apparently failed, I'm posting here instead.
I'm having trouble with JSpec apparently going into an infinite recursive loop with a certain kind of test (below). Any…

Rich Apodaca
- 28,316
- 16
- 103
- 129
7
votes
2 answers
How to manage CouchDB code out of it?
I am new to CouchDB way of making things. So, I have a lot of questions about it, but let's focus in one of them.
CouchDB has this concept of javascript code (validation + map-reduce + show + ?) being written in the design documents. This is part of…

Victor Rodrigues
- 11,353
- 23
- 75
- 107
3
votes
2 answers
JSpec no longer supported?
Coming from the Ruby community I'm looking for a BDD-testing framework for Javascript/Node.js.
I was JSpec and thought it would be the right choice because I used RSpec in Ruby.
But on their GitHub page http://github.com/visionmedia/jspec it says…

never_had_a_name
- 90,630
- 105
- 267
- 383
2
votes
1 answer
Testing JavaScript callback functions with jasmine
I have the following functions:
function getPersonData(id) {
retrieveData(
id,
function(person) {
if(person.name) {
displayPerson(person);
}
}
}
function retrieveData(id, successCallBack) {
executeRequest(id,…

user12222
- 197
- 2
- 11
1
vote
1 answer
BDD / TDD with JSpec - Removing code duplication
How do I refactor to remove the code duplication in this spec:
describe 'TestPlugins'
describe '.MovieScanner(document)'
before_each
MoviePage_loggedIn = fixture("movie_logged_in.html") // Get logged-in movie…

Chetan
- 46,743
- 31
- 106
- 145
0
votes
1 answer
Get parents from JSON when using polymorphic associations
Is there an elegant way to work with JSON response when using polymorphic associations in the below example?
JSON response:
[
{
"created_at":"2017-12-13T10:37:36Z",
"id":16,
"parent_id":21,
"parent_type":"app.models.Site",
…

belgoros
- 3,590
- 7
- 38
- 76
0
votes
1 answer
Where can I find JSpec maven info
Having used RSpec in the past, I would like to use JSpec in my Java project. But I am unable to find install information in Maven Central repository or in JSpec. Would appreciate little direction.

Bala
- 11,068
- 19
- 67
- 120