summaryrefslogtreecommitdiff
path: root/spec/javascripts/stat_graph_spec.js
diff options
context:
space:
mode:
authorKarlo Soriano <dev+karlo@aelogica.com>2013-05-09 13:00:56 +0800
committerkarlo57 <karlo.karlo.karlo@gmail.com>2013-06-05 16:51:48 +0800
commit71d67e6557acb1ce3beeec2c2c6deb35015bd8bb (patch)
treec8e23f80ee62359d8db8574056ea69ac70eb4406 /spec/javascripts/stat_graph_spec.js
parentb9d989dc056a2a2b9316ff9aa06b57c736426871 (diff)
downloadgitlab-ce-71d67e6557acb1ce3beeec2c2c6deb35015bd8bb.tar.gz
Contributors graphs feature for GitLab
Created tests and refactored some code along the way Added stat graph util spec, refactored code finsihed up tests and refactors finsihed up tests and refactors
Diffstat (limited to 'spec/javascripts/stat_graph_spec.js')
-rw-r--r--spec/javascripts/stat_graph_spec.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/spec/javascripts/stat_graph_spec.js b/spec/javascripts/stat_graph_spec.js
new file mode 100644
index 00000000000..b8881769ac1
--- /dev/null
+++ b/spec/javascripts/stat_graph_spec.js
@@ -0,0 +1,17 @@
+describe("StatGraph", function () {
+
+ describe("#get_log", function () {
+ it("returns log", function () {
+ StatGraph.log = "test";
+ expect(StatGraph.get_log()).toBe("test");
+ });
+ });
+
+ describe("#set_log", function () {
+ it("sets the log", function () {
+ StatGraph.set_log("test");
+ expect(StatGraph.log).toBe("test");
+ })
+ })
+
+}); \ No newline at end of file