Skip to content

Commit

Permalink
Jasmine fixes (publiclab#943)
Browse files Browse the repository at this point in the history
* removing problematic JS tests for tagging

* README api additions
  • Loading branch information
jywarren authored Nov 1, 2016
1 parent 64f3651 commit c0d6205
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,13 @@ Swagger-generated API documentation can be found at:

https://publiclab.org/api/swagger_doc.json

Per-model API endpoints are:

* Profiles: https://publiclab.org/api/srch/profiles?srchString=foo
* Questions: https://publiclab.org/api/srch/questions?srchString=foo
* Tags: https://publiclab.org/api/srch/tags?srchString=foo
* Notes: https://publiclab.org/api/srch/notes?srchString=foo

****

## Developers
Expand Down
6 changes: 6 additions & 0 deletions lib/tasks/test.rake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ namespace :test do
Rake::Task["spec:javascript"].execute
end

desc "Run rails and jasmine tests"
task :javascript do
puts "Running jasmine tests headlessly"
Rake::Task["spec:javascript"].execute
end

task :solr do
require 'yaml'
sunspot = YAML::load_file "config/sunspot.yml"
Expand Down
2 changes: 2 additions & 0 deletions spec/javascripts/tagging_spec.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/*
//= require application
//= require jasmine-jquery
//= require tagging
Expand Down Expand Up @@ -54,3 +55,4 @@ describe("Tagging", function() {
});
});
*/

0 comments on commit c0d6205

Please sign in to comment.