chicago 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/chicago.gemspec +2 -2
- data/lib/chicago/riot/macros.rb +5 -1
- data/test/riot_tests/application_test.rb +1 -1
- data/test/riot_tests/helpers_test.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.8
|
data/chicago.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{chicago}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Justin 'Gus' Knowlden"]
|
12
|
-
s.date = %q{2009-12-
|
12
|
+
s.date = %q{2009-12-21}
|
13
13
|
s.description = %q{Sinatra runtime and testing extensions used commonly by Thumblemonks. For example, :json_response, which turns an object into JSON and sets the content-type appropriately.}
|
14
14
|
s.email = %q{gus@gusg.us}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/chicago/riot/macros.rb
CHANGED
@@ -12,7 +12,11 @@ module Chicago
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def asserts_response_body(expected)
|
15
|
-
|
15
|
+
if (expected.kind_of?(Regexp))
|
16
|
+
asserts("response body matches #{expected.inspect}") { last_response.body }.matches(expected)
|
17
|
+
else
|
18
|
+
asserts("response body is exactly #{expected.inspect}") { last_response.body }.equals(expected)
|
19
|
+
end
|
16
20
|
end
|
17
21
|
|
18
22
|
def asserts_location(expected_path)
|
@@ -42,7 +42,7 @@ context "Application Test:" do
|
|
42
42
|
|
43
43
|
context "getting obvious views" do
|
44
44
|
setup { get '/baz' }
|
45
|
-
asserts_response_body "Whatever man. That's just like, your opinion
|
45
|
+
asserts_response_body "Whatever man. That's just like, your opinion.\n"
|
46
46
|
end # getting obvious views
|
47
47
|
|
48
48
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chicago
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin 'Gus' Knowlden
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-12-
|
12
|
+
date: 2009-12-21 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|