manuscript 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/manuscript/base.rb +2 -0
- data/lib/manuscript.rb +1 -0
- data/manuscript.gemspec +2 -2
- data/spec/manuscript/page_manager_spec.rb +5 -7
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.8
|
data/lib/manuscript/base.rb
CHANGED
data/lib/manuscript.rb
CHANGED
data/manuscript.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{manuscript}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["hotink"]
|
12
|
-
s.date = %q{2010-01-
|
12
|
+
s.date = %q{2010-01-20}
|
13
13
|
s.description = %q{A gem for publishing a small Hot Ink authenticated site}
|
14
14
|
s.email = %q{chris@hotink.net}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -13,7 +13,7 @@ describe "PageManager" do
|
|
13
13
|
end
|
14
14
|
|
15
15
|
it "should display list with both pages" do
|
16
|
-
|
16
|
+
get "/admin/pages"
|
17
17
|
|
18
18
|
last_response.should be_ok
|
19
19
|
last_response.body.should include("index")
|
@@ -24,12 +24,11 @@ describe "PageManager" do
|
|
24
24
|
get "/admin/pages/new"
|
25
25
|
last_response.should be_ok
|
26
26
|
|
27
|
-
|
28
|
-
post "/admin/pages", :page => { :name => test_time, :contents => test_time }
|
27
|
+
post "/admin/pages", :page => { :name => "new-page", :contents => "New page contents" }
|
29
28
|
last_response.should be_redirect
|
30
29
|
follow_redirect!
|
31
30
|
last_response.should be_ok
|
32
|
-
last_response.body.should include(
|
31
|
+
last_response.body.should include("New page contents")
|
33
32
|
end
|
34
33
|
|
35
34
|
it "should allow pages to be edited" do
|
@@ -38,12 +37,11 @@ describe "PageManager" do
|
|
38
37
|
last_response.should be_ok
|
39
38
|
last_response.body.should include(page.contents)
|
40
39
|
|
41
|
-
|
42
|
-
put "/admin/pages/#{page.id}", :page => { :contents => test_time }
|
40
|
+
put "/admin/pages/#{page.id}", :page => { :contents => "Changed page contents" }
|
43
41
|
last_response.should be_redirect
|
44
42
|
follow_redirect!
|
45
43
|
last_response.should be_ok
|
46
|
-
last_response.body.should include(
|
44
|
+
last_response.body.should include("Changed page contents")
|
47
45
|
end
|
48
46
|
end
|
49
47
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manuscript
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hotink
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-20 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|