baron 1.0.13 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/baron.gemspec +1 -1
- data/lib/baron/config.rb +1 -2
- data/spec/baron_spec.rb +1 -5
- data/spec/sample_data/config.ru +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.14
|
data/baron.gemspec
CHANGED
data/lib/baron/config.rb
CHANGED
data/spec/baron_spec.rb
CHANGED
@@ -130,7 +130,7 @@ describe "Baron" do
|
|
130
130
|
|
131
131
|
it "returns expected content" do
|
132
132
|
@response.body.should include(@config[:title])
|
133
|
-
@response.body.should include("http://localhost
|
133
|
+
@response.body.should include("http://localhost/feed.atom")
|
134
134
|
@response.body.scan(/<entry>/).count.should == 5
|
135
135
|
@response.body.scan(/<\/entry>/).count.should == 5
|
136
136
|
@response.body.should include('<feed')
|
@@ -149,10 +149,6 @@ describe "Baron" do
|
|
149
149
|
|
150
150
|
it_behaves_like "Server Response"
|
151
151
|
|
152
|
-
it "renders expected parameters" do
|
153
|
-
@response.body.should include("http://localhost:3000/feed.atom")
|
154
|
-
end
|
155
|
-
|
156
152
|
it "returns text content type" do
|
157
153
|
@response['Content-Type'].should == 'text/plain'
|
158
154
|
end
|
data/spec/sample_data/config.ru
CHANGED
@@ -46,7 +46,7 @@ baron = Baron::Server.new do
|
|
46
46
|
# Specify the URL of your blog for creating permalinks (good in case people
|
47
47
|
# steal your content, then the links will still point to your articles.)
|
48
48
|
# for example: http://nathanbuggia.com
|
49
|
-
set :url, 'http://localhost
|
49
|
+
set :url, 'http://localhost/'
|
50
50
|
|
51
51
|
# specify your google analytics ID
|
52
52
|
# format of "UA-XXXXXX-X"
|
data/spec/spec_helper.rb
CHANGED
@@ -8,7 +8,7 @@ def load_config
|
|
8
8
|
Baron::Config.new(:markdown => true,
|
9
9
|
:title => 'my blog',
|
10
10
|
:author => 'John Smith',
|
11
|
-
:url => 'http://localhost',
|
11
|
+
:url => 'http://localhost/',
|
12
12
|
:permalink_prefix => '',
|
13
13
|
:permalink_date_format => :year_month_day_date, # :year_date, :year_month_date, :year_month_day_date, :no_date
|
14
14
|
:article_max => 5,
|