Skip to content

Commit 513fd76

Browse files
authored
Merge pull request #26 from epochtalk/board-slugs
Board slugs
2 parents 14382a5 + be349cc commit 513fd76

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ services:
7676
RATE_LIMITING_DELETE_INTERVAL: -1
7777
command: sh -c "until node cli create-user admin [email protected] --password password --admin; do sleep 5; done"
7878
epoch:
79-
image: quay.io/epochtalk/epoch:v1.0.0
79+
image: quay.io/epochtalk/epoch:v1.11.0
8080
depends_on:
8181
- postgres
8282
links:

test/boards.js

+8
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ var boards = methods.boards;
2626
describe("Boards Creation", function() {
2727
var boardInfo = {
2828
name: 'Are you Board?',
29+
slug: 'are-you-board',
2930
description: 'A board for bored people'
3031
};
3132
it("should create a board", function () {
@@ -35,6 +36,7 @@ describe("Boards Creation", function() {
3536
boards: [
3637
{
3738
name: boardInfo.name,
39+
slug: boardInfo.slug,
3840
description: boardInfo.description,
3941
viewable_by: boardInfo.viewable_by,
4042
postable_by: boardInfo.postable_by,
@@ -53,6 +55,7 @@ describe("Boards Creation", function() {
5355
expect(board).to.have.all.keys([
5456
'id',
5557
'name',
58+
'slug',
5659
'meta',
5760
'description',
5861
'right_to_left'
@@ -65,6 +68,9 @@ describe("Boards Creation", function() {
6568
var name = board.name;
6669
expect(name).to.equal(boardInfo.name);
6770

71+
var slug = board.slug;
72+
expect(slug).to.equal(boardInfo.slug);
73+
6874
var description = board.description;
6975
expect(description).to.equal(boardInfo.description);
7076
});
@@ -85,6 +91,7 @@ describe("Boards Creation", function() {
8591
describe("Boards Deletion", function() {
8692
var boardInfo = {
8793
name: 'Are you Board?',
94+
slug: 'are-you-board',
8895
description: 'A board for bored people'
8996
};
9097
before("create the board to delete", function() {
@@ -94,6 +101,7 @@ describe("Boards Deletion", function() {
94101
boards: [
95102
{
96103
name: boardInfo.name,
104+
slug: boardInfo.slug,
97105
description: boardInfo.description,
98106
viewable_by: boardInfo.viewable_by,
99107
postable_by: boardInfo.postable_by,

0 commit comments

Comments
 (0)