Skip to content

Commit

Permalink
add meteor test
Browse files Browse the repository at this point in the history
  • Loading branch information
myf committed Sep 4, 2012
1 parent 78b7214 commit e29b65e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion bamboo-client/client/client.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ if root.Meteor.is_client
title = "Bar Chart of "
else
title = "Box Plot of "
frag = Meteor.ui.render( ->
frag = Meteor.render( ->
return Template.graph({
title: title
field: view_field
Expand Down Expand Up @@ -153,6 +153,7 @@ if root.Meteor.is_client
#########GRAPH###############################
root.Template.graph.events =
"click .deletionBtn": ->
console.log "hello"
url = Session.get("currentDatasetURL")
user = Session.get("currentUser")
field = this.field
Expand Down
8 changes: 8 additions & 0 deletions bamboo-client/client/spec/meteortesst.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
load_test=->
describe "register URL", ->
Session.set "currentDatasetURL", "https://www.dropbox.com/s/0m8smn04oti92gr/sample_dataset_school_survey.csv?dl=1"
describe "url", ->
it "should find url after registeration", ->
url = Session.get "currentDatasetURL"
expect(url).toEqual("https://www.dropbox.com/s/0m8smn04oti92gr/sample_dataset_school_survey.csv?dl=1")

2 changes: 1 addition & 1 deletion bamboo-client/lib/router.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ if Meteor.is_client
else
title = "Box Plot of "
console.log "output the title: " + title
frag = Meteor.ui.render( ->
frag = Meteor.render( ->
return Template.graph({
title: title
field: chart.field
Expand Down
2 changes: 1 addition & 1 deletion bamboo-client/server/server.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require = __meteor_bootstrap__.require
request = require 'request'
#bambooURL = 'http://localhost:8080'
#bambooURL = 'http://bamboo.modilabs.org/'
bambooURL = 'http://bamboo.io/'
bambooURL = 'http://dev.bamboo.io/'
#bambooURL = 'http://starscream.modilabs.org:8080/'
datasetsURL = bambooURL + '/datasets'
summaryURLf = (id,group) -> datasetsURL + '/' + id + '/summary' +
Expand Down

0 comments on commit e29b65e

Please sign in to comment.