Skip to content

Commit

Permalink
stereotype-clj becomes stereotype
Browse files Browse the repository at this point in the history
  • Loading branch information
josephwilk committed Mar 29, 2013
1 parent 333bd57 commit 6a46943
Show file tree
Hide file tree
Showing 15 changed files with 36 additions and 36 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
all: unit integration

unit:
lein midje stereotype-clj.unit.*
lein midje stereotype.unit.*

integration:
lein midje stereotype-clj.integration.*
lein midje stereotype.integration.*

ci:
lein2 with-profile dev,1.3:dev,1.4:dev,1.5 midje
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Stereotype

[![Build Status](https://travis-ci.org/josephwilk/stereotype-clj.png?branch=master)](https://travis-ci.org/josephwilk/stereotype-clj)
[![Build Status](https://travis-ci.org/josephwilk/stereotype.png?branch=master)](https://travis-ci.org/josephwilk/stereotype)

A library for setting up test data in Clojure.

Expand All @@ -14,7 +14,7 @@ Which provides greater clarity in your tests.

Add the following dependency to your project.clj file:

https://clojars.org/stereotype-clj
https://clojars.org/stereotype

##Usage

Expand Down
4 changes: 2 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(defproject stereotype-clj "0.1.14"
(defproject stereotype "0.1.14"
:description "A library for setting up test data in Clojure "
:url "https://github.com/josephwilk/stereotype-clj"
:url "https://github.com/josephwilk/stereotype"
:license {:name "MIT License"
:url "http://opensource.org/licenses/MIT"}
:dependencies [[org.clojure/clojure "1.4.0"]
Expand Down
14 changes: 7 additions & 7 deletions src/stereotype_clj/core.clj → src/stereotype/core.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns stereotype-clj.core
(ns stereotype.core
(:require
[stereotype-clj.stereotypes :as stereotypes]
[stereotype-clj.sequences :as sequences]))
[stereotype.stereotypes :as stereotypes]
[stereotype.sequences :as sequences]))

(defmacro defstereotype
"define a stereotype with default attributes"
Expand All @@ -23,10 +23,10 @@
[sequence-id form]
(sequences/define sequence-id form))

(defn reset-sequence!
"Reset the counter to 1 for specified sequence"
[sequence-id]
(sequences/reset-for! sequence-id))
(defn reset-sequence!
"Reset the counter to 1 for specified sequence"
[sequence-id]
(sequences/reset-for! sequence-id))

(defn reset-all-sequences!
"Reset all counters to 1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns stereotype-clj.entities)
(ns stereotype.entities)

(defn id-for [identifier]
(cond
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns stereotype-clj.resolve)
(ns stereotype.resolve)

(defn- arg-count [f]
(let [m (first (.getDeclaredMethods (class f)))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns stereotype-clj.sequences
(ns stereotype.sequences
(:use
[slingshot.slingshot :only [throw+]]))

Expand Down
2 changes: 1 addition & 1 deletion src/stereotype_clj/sql.clj → src/stereotype/sql.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns stereotype-clj.sql)
(ns stereotype.sql)

(def inserted-id-key
:inserted-id)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(ns stereotype-clj.stereotypes
(ns stereotype.stereotypes
(:use
[korma.db]
[korma.core]
[slingshot.slingshot :only [throw+]])
(:require
[stereotype-clj.entities :as entities]
[stereotype-clj.sql :as sql]
[stereotype-clj.resolve :as resolve]))
[stereotype.entities :as entities]
[stereotype.sql :as sql]
[stereotype.resolve :as resolve]))

(defn- fn-name [stereotype-id]
(symbol (str "stereotype-" (name stereotype-id))))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns stereotype-clj.integration.stereotypes
(:use [stereotype-clj.core]
[stereotype-clj.integration.support])
(ns stereotype.integration.stereotypes
(:use [stereotype.core]
[stereotype.integration.support])
(:require
[clj-time.core :as time]))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(ns stereotype-clj.integration.support
(ns stereotype.integration.support
(:use
[korma.core]
[korma.db]
[stereotype-clj.core])
[stereotype.core])
(:require
[clojure.java.jdbc :as sql]))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(ns stereotype-clj.integration.t-core
(ns stereotype.integration.t-core
(:use
[midje.sweet]
[stereotype-clj.core]
[stereotype-clj.integration.support]
[stereotype-clj.integration.stereotypes]
[stereotype.core]
[stereotype.integration.support]
[stereotype.integration.stereotypes]
[korma.db]
[korma.core]))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns stereotype-clj.unit.t-core
(ns stereotype.unit.t-core
(:use
[midje.sweet]
[stereotype-clj.core]))
[stereotype.core]))

(facts "defstereotype"
(fact "it should return the user entity defaults"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns stereotype-clj.unit.t-resolve
(ns stereotype.unit.t-resolve
(:use
[midje.sweet]
[stereotype-clj.resolve]))
[stereotype.resolve]))

(fact "it should resolve unparameterized functions"
(all {:123 (fn [] 321)}) => {:123 321})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns stereotype-clj.unit.t-sql
(ns stereotype.unit.t-sql
(:use
[midje.sweet]
[stereotype-clj.sql]))
[stereotype.sql]))

(fact "it should detect key from sqlite insert results"
(pk {(keyword "last_insert_rowid()") 10}) => (contains {:id 10}))
Expand Down

0 comments on commit 6a46943

Please sign in to comment.