Skip to content

Commit

Permalink
Merge pull request #150 from reup-distribution/cljc
Browse files Browse the repository at this point in the history
Support .cljc specs
  • Loading branch information
slagyr committed Apr 7, 2016
2 parents 2fe63c8 + 5eda9a8 commit ff4e449
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject speclj "3.3.1"
(defproject speclj "3.3.2-SNAPSHOT"
:description "speclj: Pronounced 'speckle', is a Behavior Driven Development framework for Clojure."
:url "http://speclj.com"
:license {:name "The MIT License"
Expand Down
4 changes: 2 additions & 2 deletions src/speclj/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
([message] (if cljs? `(js/Object. ~message) `(java.lang.Throwable. ~message))))

(defmacro ^:no-doc -new-failure [message]
(if cljs? `(speclj.platform.SpecFailure. ~message) `(speclj.SpecFailure. ~message)))
`(speclj.platform.SpecFailure. ~message))

(defmacro ^:no-doc -new-pending [message]
(if cljs? `(speclj.platform.SpecPending. ~message) `(speclj.SpecPending. ~message)))
`(speclj.platform.SpecPending. ~message))

(defmacro it
"body => any forms but aught to contain at least one assertion (should)
Expand Down
4 changes: 2 additions & 2 deletions src/speclj/platform.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

(def throwable Throwable)
(def exception java.lang.Exception)
(def failure speclj.SpecFailure)
(def pending speclj.SpecPending)
(def failure speclj.platform.SpecFailure)
(def pending speclj.platform.SpecPending)

(defn pending? [e] (isa? (type e) pending))
(defn failure? [e] (isa? (type e) failure))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package speclj;
package speclj.platform;

public class SpecFailure extends Exception
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package speclj;
package speclj.platform;

public class SpecPending extends Exception
{
Expand Down

0 comments on commit ff4e449

Please sign in to comment.