ruby_slippers 0.2.4 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/test/fixtures/articles/2011-05-18-ozma-of-oz.md +10 -0
- data/test/integration/articles_test.rb +16 -1
- metadata +3 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.8
|
@@ -0,0 +1,10 @@
|
|
1
|
+
title: Ozma of Oz
|
2
|
+
date: 18/05/2011
|
3
|
+
tags: ozma, oz
|
4
|
+
image: ozma.png
|
5
|
+
|
6
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
7
|
+
|
8
|
+
~
|
9
|
+
|
10
|
+
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
@@ -23,7 +23,8 @@ module RubySlippers::Engine
|
|
23
23
|
|
24
24
|
context "with no articles" do
|
25
25
|
setup { Rack::MockRequest.new(App.new(@config.merge(:ext => 'oxo'))).get('/') }
|
26
|
-
|
26
|
+
|
27
|
+
should("include 0 articles"){ topic.body }.includes_elements("article", 0)
|
27
28
|
asserts("body is not empty") { not topic.body.empty? }
|
28
29
|
asserts("return a 200") { topic.status }.equals 200
|
29
30
|
end
|
@@ -43,6 +44,20 @@ module RubySlippers::Engine
|
|
43
44
|
asserts("Etag header present") { topic.headers.include? "ETag" }
|
44
45
|
asserts("Etag header has a value") { not topic.headers["ETag"].empty? }
|
45
46
|
end
|
47
|
+
|
48
|
+
context "with a user-defined ext" do
|
49
|
+
setup do
|
50
|
+
@config[:ext] = 'md'
|
51
|
+
@ruby_slippers.get('/')
|
52
|
+
end
|
53
|
+
|
54
|
+
asserts("return a 200") { topic.status }.equals 200
|
55
|
+
asserts("body is not empty"){ not topic.body.empty? }
|
56
|
+
asserts("content type is set properly") { topic.content_type }.equals "text/html"
|
57
|
+
should("include 1 article"){ topic.body }.includes_elements("article", 1)
|
58
|
+
asserts("Etag header present") { topic.headers.include? "ETag" }
|
59
|
+
asserts("Etag header has a value") { not topic.headers["ETag"].empty? }
|
60
|
+
end
|
46
61
|
end
|
47
62
|
|
48
63
|
context "GET a single article" do
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: ruby_slippers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.8
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- dreamr
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-
|
14
|
+
date: 2011-07-09 00:00:00 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rake
|
@@ -213,6 +213,7 @@ files:
|
|
213
213
|
- test/fixtures/articles/2010-05-17-the-wonderful-wizard-of-oz.txt
|
214
214
|
- test/fixtures/articles/2010-05-18-the-marvelous-land-of-oz.txt
|
215
215
|
- test/fixtures/articles/2010-05-20-dorothy-and-the-wizard-of-oz.txt
|
216
|
+
- test/fixtures/articles/2011-05-18-ozma-of-oz.md
|
216
217
|
- test/fixtures/articles/2011-05-18-ozma-of-oz.txt
|
217
218
|
- test/fixtures/images/ozma.png
|
218
219
|
- test/fixtures/pages/about.html.erb
|