rack-test-rest 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/README.md +5 -5
  2. data/VERSION +1 -1
  3. data/rack-test-rest.gemspec +63 -0
  4. metadata +4 -3
data/README.md CHANGED
@@ -33,8 +33,8 @@ that is testing a specific resource e.g.:
33
33
  def test_read
34
34
  create_resource(:name => "foo")
35
35
 
36
- gauge = read_resource(:id => name)
37
- assert gauge['name'] == name
36
+ gauge = read_resource(:id => "foo")
37
+ assert gauge['name'] == "foo"
38
38
  end
39
39
 
40
40
  def test_update
@@ -42,14 +42,14 @@ that is testing a specific resource e.g.:
42
42
 
43
43
  update_resource(:id => "foo", :description => "baz")
44
44
 
45
- gauge = read_resource(:id => name)
45
+ gauge = read_resource(:id => "foo")
46
46
  assert gauge['description'] == "baz"
47
47
  end
48
48
 
49
49
  def test_delete
50
50
  create_resource(:name => "foo")
51
51
  delete_resource(:id => "foo")
52
- read_resource(:code => 404, :id => name)
52
+ read_resource(:code => 404, :id => "foo")
53
53
  end
54
54
 
55
55
  `rack-test-rest` exploits _convention over configuration_ to minimize the amount of work
@@ -95,7 +95,7 @@ e.g.
95
95
  ## Debugging
96
96
  The point of unit tests is to surface and fix defects and/or regressions in your code
97
97
  in the lab rather than than in production. When your tests fail you can include
98
- :debug => true` to instruct `rack-rest-test` to verbosely log to STDOUT the individual
98
+ `:debug => true` to instruct `rack-rest-test` to verbosely log to STDOUT the individual
99
99
  HTTP requests it's performing and the results of each.
100
100
 
101
101
  ## Pagination
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -0,0 +1,63 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{rack-test-rest}
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Joseph Ruscio"]
12
+ s.date = %q{2011-04-10}
13
+ s.description = %q{rack-test-rest is an extension to rack-test that when combined with Test::Unit simplifies the process of unit testing properly designed RESTful API's.}
14
+ s.email = %q{joe@ruscio.org}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
24
+ "README.md",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "lib/rack-test-rest.rb",
28
+ "rack-test-rest.gemspec",
29
+ "test/helper.rb",
30
+ "test/test_rack-test-rest.rb"
31
+ ]
32
+ s.homepage = %q{http://github.com/josephruscio/rack-test-rest}
33
+ s.licenses = ["MIT"]
34
+ s.require_paths = ["lib"]
35
+ s.rubygems_version = %q{1.4.2}
36
+ s.summary = %q{Abstractions for testing RESTful API's with rack-test and Test::Unit.}
37
+ s.test_files = [
38
+ "test/helper.rb",
39
+ "test/test_rack-test-rest.rb"
40
+ ]
41
+
42
+ if s.respond_to? :specification_version then
43
+ s.specification_version = 3
44
+
45
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
46
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
47
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
48
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
49
+ s.add_development_dependency(%q<rcov>, [">= 0"])
50
+ else
51
+ s.add_dependency(%q<shoulda>, [">= 0"])
52
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
53
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
54
+ s.add_dependency(%q<rcov>, [">= 0"])
55
+ end
56
+ else
57
+ s.add_dependency(%q<shoulda>, [">= 0"])
58
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
59
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
60
+ s.add_dependency(%q<rcov>, [">= 0"])
61
+ end
62
+ end
63
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-test-rest
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joseph Ruscio
@@ -96,6 +96,7 @@ files:
96
96
  - Rakefile
97
97
  - VERSION
98
98
  - lib/rack-test-rest.rb
99
+ - rack-test-rest.gemspec
99
100
  - test/helper.rb
100
101
  - test/test_rack-test-rest.rb
101
102
  has_rdoc: true