routespec 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.txt +66 -0
- data/Rakefile +26 -0
- data/bin/routespec +29 -0
- data/lib/routespec.rb +22 -0
- data/lib/routespec/builder.rb +111 -0
- data/lib/routespec/dyr.rb +50 -0
- data/lib/routespec/fyle.rb +72 -0
- data/lib/routespec/parser.rb +143 -0
- data/lib/routespec/railtie.rb +7 -0
- data/lib/routespec/routespec/requests/.gitkeep +0 -0
- data/lib/routespec/routespec/support/.gitkeep +0 -0
- data/lib/routespec/routespec/templates/default_spec.erb +24 -0
- data/lib/routespec/tasks.rb +18 -0
- data/lib/routespec/tasks/routespec.rake +22 -0
- data/lib/routespec/template_vars.rb +7 -0
- data/lib/routespec/version.rb +3 -0
- data/test/files/awesome.yml +1 -0
- data/test/files/response_code_vcr_spec.erb +24 -0
- data/test/files/routes.txt +12 -0
- data/test/files/routes.yml +193 -0
- data/test/files/routes_hash.rb +159 -0
- data/test/files/routes_hash_2.rb +153 -0
- data/test/files/routes_hash_3.rb +1 -0
- data/test/files/tasks_routes.txt +21 -0
- data/test/files/template_spec.erb +13 -0
- data/test/files/unclean.txt +11 -0
- data/test/rails311/Gemfile +4 -0
- data/test/rails311/Gemfile.lock +90 -0
- data/test/rails311/README +261 -0
- data/test/rails311/Rakefile +7 -0
- data/test/rails311/app/assets/images/rails.png +0 -0
- data/test/rails311/app/assets/javascripts/application.js +9 -0
- data/test/rails311/app/assets/javascripts/beers.js +2 -0
- data/test/rails311/app/assets/javascripts/chips.js +2 -0
- data/test/rails311/app/assets/javascripts/sports.js +2 -0
- data/test/rails311/app/assets/stylesheets/application.css +7 -0
- data/test/rails311/app/assets/stylesheets/beers.css +4 -0
- data/test/rails311/app/assets/stylesheets/chips.css +4 -0
- data/test/rails311/app/assets/stylesheets/scaffold.css +56 -0
- data/test/rails311/app/assets/stylesheets/sports.css +4 -0
- data/test/rails311/app/controllers/application_controller.rb +3 -0
- data/test/rails311/app/controllers/beers_controller.rb +83 -0
- data/test/rails311/app/controllers/chips_controller.rb +83 -0
- data/test/rails311/app/controllers/sports_controller.rb +83 -0
- data/test/rails311/app/helpers/application_helper.rb +2 -0
- data/test/rails311/app/helpers/beers_helper.rb +2 -0
- data/test/rails311/app/helpers/chips_helper.rb +2 -0
- data/test/rails311/app/helpers/sports_helper.rb +2 -0
- data/test/rails311/app/models/beer.rb +2 -0
- data/test/rails311/app/models/chip.rb +2 -0
- data/test/rails311/app/models/sport.rb +2 -0
- data/test/rails311/app/views/beers/_form.html.erb +17 -0
- data/test/rails311/app/views/beers/edit.html.erb +6 -0
- data/test/rails311/app/views/beers/index.html.erb +21 -0
- data/test/rails311/app/views/beers/new.html.erb +5 -0
- data/test/rails311/app/views/beers/show.html.erb +5 -0
- data/test/rails311/app/views/chips/_form.html.erb +17 -0
- data/test/rails311/app/views/chips/edit.html.erb +6 -0
- data/test/rails311/app/views/chips/index.html.erb +21 -0
- data/test/rails311/app/views/chips/new.html.erb +5 -0
- data/test/rails311/app/views/chips/show.html.erb +5 -0
- data/test/rails311/app/views/layouts/application.html.erb +14 -0
- data/test/rails311/app/views/sports/_form.html.erb +17 -0
- data/test/rails311/app/views/sports/edit.html.erb +6 -0
- data/test/rails311/app/views/sports/index.html.erb +21 -0
- data/test/rails311/app/views/sports/new.html.erb +5 -0
- data/test/rails311/app/views/sports/show.html.erb +5 -0
- data/test/rails311/config.ru +4 -0
- data/test/rails311/config/application.rb +48 -0
- data/test/rails311/config/boot.rb +6 -0
- data/test/rails311/config/database.yml +25 -0
- data/test/rails311/config/environment.rb +5 -0
- data/test/rails311/config/environments/development.rb +30 -0
- data/test/rails311/config/environments/production.rb +60 -0
- data/test/rails311/config/environments/test.rb +39 -0
- data/test/rails311/config/initializers/backtrace_silencers.rb +7 -0
- data/test/rails311/config/initializers/inflections.rb +10 -0
- data/test/rails311/config/initializers/mime_types.rb +5 -0
- data/test/rails311/config/initializers/secret_token.rb +7 -0
- data/test/rails311/config/initializers/session_store.rb +8 -0
- data/test/rails311/config/initializers/wrap_parameters.rb +14 -0
- data/test/rails311/config/locales/en.yml +5 -0
- data/test/rails311/config/routes.rb +64 -0
- data/test/rails311/db/development.sqlite3 +0 -0
- data/test/rails311/db/migrate/20111227222038_create_beers.rb +8 -0
- data/test/rails311/db/migrate/20111227222056_create_chips.rb +8 -0
- data/test/rails311/db/migrate/20111227222113_create_sports.rb +8 -0
- data/test/rails311/db/schema.rb +31 -0
- data/test/rails311/db/seeds.rb +7 -0
- data/test/rails311/db/test.sqlite3 +0 -0
- data/test/rails311/doc/README_FOR_APP +2 -0
- data/test/rails311/log/development.log +28 -0
- data/test/rails311/log/test.log +0 -0
- data/test/rails311/public/404.html +26 -0
- data/test/rails311/public/422.html +26 -0
- data/test/rails311/public/500.html +26 -0
- data/test/rails311/public/favicon.ico +0 -0
- data/test/rails311/public/index.html +241 -0
- data/test/rails311/public/robots.txt +5 -0
- data/test/rails311/script/rails +6 -0
- data/test/rails311/spec/routespec/requests/beers/beers_spec.rb +74 -0
- data/test/rails311/spec/routespec/requests/chips/chips_spec.rb +74 -0
- data/test/rails311/spec/routespec/requests/sports/sports_spec.rb +74 -0
- data/test/rails311/spec/routespec/support/routes.txt +21 -0
- data/test/rails311/spec/routespec/support/routes.yml +322 -0
- data/test/rails311/spec/routespec/templates/default_spec.erb +24 -0
- data/test/rails311/test/fixtures/beers.yml +11 -0
- data/test/rails311/test/fixtures/chips.yml +11 -0
- data/test/rails311/test/fixtures/sports.yml +11 -0
- data/test/rails311/test/functional/beers_controller_test.rb +49 -0
- data/test/rails311/test/functional/chips_controller_test.rb +49 -0
- data/test/rails311/test/functional/sports_controller_test.rb +49 -0
- data/test/rails311/test/performance/browsing_test.rb +12 -0
- data/test/rails311/test/test_helper.rb +13 -0
- data/test/rails311/test/unit/beer_test.rb +7 -0
- data/test/rails311/test/unit/chip_test.rb +7 -0
- data/test/rails311/test/unit/helpers/beers_helper_test.rb +4 -0
- data/test/rails311/test/unit/helpers/chips_helper_test.rb +4 -0
- data/test/rails311/test/unit/helpers/sports_helper_test.rb +4 -0
- data/test/rails311/test/unit/sport_test.rb +7 -0
- data/test/rails311/vendor/cache/actionmailer-3.1.1.gem +0 -0
- data/test/rails311/vendor/cache/actionpack-3.1.1.gem +0 -0
- data/test/rails311/vendor/cache/activemodel-3.1.1.gem +0 -0
- data/test/rails311/vendor/cache/activerecord-3.1.1.gem +0 -0
- data/test/rails311/vendor/cache/activeresource-3.1.1.gem +0 -0
- data/test/rails311/vendor/cache/activesupport-3.1.1.gem +0 -0
- data/test/rails311/vendor/cache/arel-2.2.1.gem +0 -0
- data/test/rails311/vendor/cache/builder-3.0.0.gem +0 -0
- data/test/rails311/vendor/cache/erubis-2.7.0.gem +0 -0
- data/test/rails311/vendor/cache/hike-1.2.1.gem +0 -0
- data/test/rails311/vendor/cache/i18n-0.6.0.gem +0 -0
- data/test/rails311/vendor/cache/json-1.6.4.gem +0 -0
- data/test/rails311/vendor/cache/mail-2.3.0.gem +0 -0
- data/test/rails311/vendor/cache/mime-types-1.17.2.gem +0 -0
- data/test/rails311/vendor/cache/multi_json-1.0.4.gem +0 -0
- data/test/rails311/vendor/cache/polyglot-0.3.3.gem +0 -0
- data/test/rails311/vendor/cache/rack-1.3.5.gem +0 -0
- data/test/rails311/vendor/cache/rack-cache-1.1.gem +0 -0
- data/test/rails311/vendor/cache/rack-mount-0.8.3.gem +0 -0
- data/test/rails311/vendor/cache/rack-ssl-1.3.2.gem +0 -0
- data/test/rails311/vendor/cache/rack-test-0.6.1.gem +0 -0
- data/test/rails311/vendor/cache/rails-3.1.1.gem +0 -0
- data/test/rails311/vendor/cache/railties-3.1.1.gem +0 -0
- data/test/rails311/vendor/cache/rake-0.9.2.2.gem +0 -0
- data/test/rails311/vendor/cache/rdoc-3.12.gem +0 -0
- data/test/rails311/vendor/cache/sprockets-2.0.3.gem +0 -0
- data/test/rails311/vendor/cache/sqlite3-1.3.5.gem +0 -0
- data/test/rails311/vendor/cache/thor-0.14.6.gem +0 -0
- data/test/rails311/vendor/cache/tilt-1.3.3.gem +0 -0
- data/test/rails311/vendor/cache/treetop-1.4.10.gem +0 -0
- data/test/rails311/vendor/cache/tzinfo-0.3.31.gem +0 -0
- data/test/sandbox/awsome.txt +1 -0
- data/test/sandbox/cerveja/muito_legal/cool/cool_spec.rb +1 -0
- data/test/sandbox/cerveja/rad/rad_spec.rb +1 -0
- data/test/sandbox/cool.txt +4 -0
- data/test/sandbox/rails_root/routespec/templates/default_spec.erb +24 -0
- data/test/sandbox/requests/dynamic/dynamic_spec.rb +17 -0
- data/test/sandbox/requests/errors/errors_spec.rb +36 -0
- data/test/sandbox/requests/info_panel/info_panel_spec.rb +16 -0
- data/test/sandbox/requests/legacy/legacy_spec.rb +26 -0
- data/test/sandbox/requests2/dynamic/dynamic_spec.rb +17 -0
- data/test/sandbox/requests2/errors/errors_spec.rb +36 -0
- data/test/sandbox/requests2/info_panel/info_panel_spec.rb +16 -0
- data/test/sandbox/requests2/legacy/legacy_spec.rb +26 -0
- data/test/sandbox/routes.txt +21 -0
- data/test/sandbox/routes.yml +193 -0
- data/test/sandbox/seu_jorge.yml +3 -0
- data/test/test_builder.rb +118 -0
- data/test/test_config.rb +5 -0
- data/test/test_dyr.rb +56 -0
- data/test/test_fyle.rb +59 -0
- data/test/test_parser.rb +84 -0
- data/test/test_rails311.rb +15 -0
- data/test/test_routespec.rb +8 -0
- data/test/test_tasks.rb +26 -0
- data/test/test_template_vars.rb +18 -0
- metadata +382 -0
@@ -0,0 +1,24 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
#
|
4
|
+
# routes
|
5
|
+
<% @routes.each do |route| %>
|
6
|
+
# <%= route.raw %>
|
7
|
+
<% end %>
|
8
|
+
#
|
9
|
+
describe "<%= @name %> response status codes" do
|
10
|
+
<% @routes.each do |route| %>
|
11
|
+
describe "<%= route.http_verb %> <%= route.path %>" do
|
12
|
+
it "should have a response", :vcr do
|
13
|
+
<% if route.vars %>
|
14
|
+
<% route.vars.each do |var| %>
|
15
|
+
<%= var %>
|
16
|
+
<% end %>
|
17
|
+
<% end %>
|
18
|
+
<%= route.http_verb.downcase %> <%= route.helper_path %>
|
19
|
+
response.status.should be(<%= route.status_code %>)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
<% end %>
|
24
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
2
|
+
|
3
|
+
# This model initially had no columns defined. If you add columns to the
|
4
|
+
# model remove the '{}' from the fixture names and add the columns immediately
|
5
|
+
# below each fixture, per the syntax in the comments below
|
6
|
+
#
|
7
|
+
one: {}
|
8
|
+
# column: value
|
9
|
+
#
|
10
|
+
two: {}
|
11
|
+
# column: value
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
2
|
+
|
3
|
+
# This model initially had no columns defined. If you add columns to the
|
4
|
+
# model remove the '{}' from the fixture names and add the columns immediately
|
5
|
+
# below each fixture, per the syntax in the comments below
|
6
|
+
#
|
7
|
+
one: {}
|
8
|
+
# column: value
|
9
|
+
#
|
10
|
+
two: {}
|
11
|
+
# column: value
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
|
2
|
+
|
3
|
+
# This model initially had no columns defined. If you add columns to the
|
4
|
+
# model remove the '{}' from the fixture names and add the columns immediately
|
5
|
+
# below each fixture, per the syntax in the comments below
|
6
|
+
#
|
7
|
+
one: {}
|
8
|
+
# column: value
|
9
|
+
#
|
10
|
+
two: {}
|
11
|
+
# column: value
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class BeersControllerTest < ActionController::TestCase
|
4
|
+
setup do
|
5
|
+
@beer = beers(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get :index
|
10
|
+
assert_response :success
|
11
|
+
assert_not_nil assigns(:beers)
|
12
|
+
end
|
13
|
+
|
14
|
+
test "should get new" do
|
15
|
+
get :new
|
16
|
+
assert_response :success
|
17
|
+
end
|
18
|
+
|
19
|
+
test "should create beer" do
|
20
|
+
assert_difference('Beer.count') do
|
21
|
+
post :create, beer: @beer.attributes
|
22
|
+
end
|
23
|
+
|
24
|
+
assert_redirected_to beer_path(assigns(:beer))
|
25
|
+
end
|
26
|
+
|
27
|
+
test "should show beer" do
|
28
|
+
get :show, id: @beer.to_param
|
29
|
+
assert_response :success
|
30
|
+
end
|
31
|
+
|
32
|
+
test "should get edit" do
|
33
|
+
get :edit, id: @beer.to_param
|
34
|
+
assert_response :success
|
35
|
+
end
|
36
|
+
|
37
|
+
test "should update beer" do
|
38
|
+
put :update, id: @beer.to_param, beer: @beer.attributes
|
39
|
+
assert_redirected_to beer_path(assigns(:beer))
|
40
|
+
end
|
41
|
+
|
42
|
+
test "should destroy beer" do
|
43
|
+
assert_difference('Beer.count', -1) do
|
44
|
+
delete :destroy, id: @beer.to_param
|
45
|
+
end
|
46
|
+
|
47
|
+
assert_redirected_to beers_path
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class ChipsControllerTest < ActionController::TestCase
|
4
|
+
setup do
|
5
|
+
@chip = chips(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get :index
|
10
|
+
assert_response :success
|
11
|
+
assert_not_nil assigns(:chips)
|
12
|
+
end
|
13
|
+
|
14
|
+
test "should get new" do
|
15
|
+
get :new
|
16
|
+
assert_response :success
|
17
|
+
end
|
18
|
+
|
19
|
+
test "should create chip" do
|
20
|
+
assert_difference('Chip.count') do
|
21
|
+
post :create, chip: @chip.attributes
|
22
|
+
end
|
23
|
+
|
24
|
+
assert_redirected_to chip_path(assigns(:chip))
|
25
|
+
end
|
26
|
+
|
27
|
+
test "should show chip" do
|
28
|
+
get :show, id: @chip.to_param
|
29
|
+
assert_response :success
|
30
|
+
end
|
31
|
+
|
32
|
+
test "should get edit" do
|
33
|
+
get :edit, id: @chip.to_param
|
34
|
+
assert_response :success
|
35
|
+
end
|
36
|
+
|
37
|
+
test "should update chip" do
|
38
|
+
put :update, id: @chip.to_param, chip: @chip.attributes
|
39
|
+
assert_redirected_to chip_path(assigns(:chip))
|
40
|
+
end
|
41
|
+
|
42
|
+
test "should destroy chip" do
|
43
|
+
assert_difference('Chip.count', -1) do
|
44
|
+
delete :destroy, id: @chip.to_param
|
45
|
+
end
|
46
|
+
|
47
|
+
assert_redirected_to chips_path
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class SportsControllerTest < ActionController::TestCase
|
4
|
+
setup do
|
5
|
+
@sport = sports(:one)
|
6
|
+
end
|
7
|
+
|
8
|
+
test "should get index" do
|
9
|
+
get :index
|
10
|
+
assert_response :success
|
11
|
+
assert_not_nil assigns(:sports)
|
12
|
+
end
|
13
|
+
|
14
|
+
test "should get new" do
|
15
|
+
get :new
|
16
|
+
assert_response :success
|
17
|
+
end
|
18
|
+
|
19
|
+
test "should create sport" do
|
20
|
+
assert_difference('Sport.count') do
|
21
|
+
post :create, sport: @sport.attributes
|
22
|
+
end
|
23
|
+
|
24
|
+
assert_redirected_to sport_path(assigns(:sport))
|
25
|
+
end
|
26
|
+
|
27
|
+
test "should show sport" do
|
28
|
+
get :show, id: @sport.to_param
|
29
|
+
assert_response :success
|
30
|
+
end
|
31
|
+
|
32
|
+
test "should get edit" do
|
33
|
+
get :edit, id: @sport.to_param
|
34
|
+
assert_response :success
|
35
|
+
end
|
36
|
+
|
37
|
+
test "should update sport" do
|
38
|
+
put :update, id: @sport.to_param, sport: @sport.attributes
|
39
|
+
assert_redirected_to sport_path(assigns(:sport))
|
40
|
+
end
|
41
|
+
|
42
|
+
test "should destroy sport" do
|
43
|
+
assert_difference('Sport.count', -1) do
|
44
|
+
delete :destroy, id: @sport.to_param
|
45
|
+
end
|
46
|
+
|
47
|
+
assert_redirected_to sports_path
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'rails/performance_test_help'
|
3
|
+
|
4
|
+
class BrowsingTest < ActionDispatch::PerformanceTest
|
5
|
+
# Refer to the documentation for all available options
|
6
|
+
# self.profile_options = { :runs => 5, :metrics => [:wall_time, :memory]
|
7
|
+
# :output => 'tmp/performance', :formats => [:flat] }
|
8
|
+
|
9
|
+
def test_homepage
|
10
|
+
get '/'
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
ENV["RAILS_ENV"] = "test"
|
2
|
+
require File.expand_path('../../config/environment', __FILE__)
|
3
|
+
require 'rails/test_help'
|
4
|
+
|
5
|
+
class ActiveSupport::TestCase
|
6
|
+
# Setup all fixtures in test/fixtures/*.(yml|csv) for all tests in alphabetical order.
|
7
|
+
#
|
8
|
+
# Note: You'll currently still have to declare fixtures explicitly in integration tests
|
9
|
+
# -- they do not yet inherit this setting
|
10
|
+
fixtures :all
|
11
|
+
|
12
|
+
# Add more helper methods to be used by all tests here...
|
13
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
awesome
|
@@ -0,0 +1 @@
|
|
1
|
+
bavaria
|
@@ -0,0 +1 @@
|
|
1
|
+
skol
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
#
|
4
|
+
# routes
|
5
|
+
<% @routes.each do |route| %>
|
6
|
+
# <%= route.raw %>
|
7
|
+
<% end %>
|
8
|
+
#
|
9
|
+
describe "<%= @name %> response status codes" do
|
10
|
+
<% @routes.each do |route| %>
|
11
|
+
describe "<%= route.http_verb %> <%= route.path %>" do
|
12
|
+
it "should have a response", :vcr do
|
13
|
+
<% if route.vars %>
|
14
|
+
<% route.vars.each do |var| %>
|
15
|
+
<%= var %>
|
16
|
+
<% end %>
|
17
|
+
<% end %>
|
18
|
+
<%= route.http_verb.downcase %> <%= route.helper_path %>
|
19
|
+
response.status.should be(<%= route.status_code %>)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
<% end %>
|
24
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
#
|
4
|
+
# routes
|
5
|
+
# dynamic_controller /:controller/render_event_response(.:format) {:action=>"render_event_response"}
|
6
|
+
#
|
7
|
+
describe "dynamic response status codes" do
|
8
|
+
describe "GET /:controller/render_event_response(.:format)" do
|
9
|
+
it "should have a response", :vcr do
|
10
|
+
controller = "REPLACE"
|
11
|
+
format = nil
|
12
|
+
get dynamic_controller_path(:controller => controller, :format => format)
|
13
|
+
response.status.should be(200)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
#
|
4
|
+
# routes
|
5
|
+
# POST /errors(.:format) {:action=>"create", :controller=>"errors"}
|
6
|
+
# PUT /errors/:id(.:format) {:action=>"update", :controller=>"errors"}
|
7
|
+
# DELETE /errors/:id(.:format) {:action=>"destroy", :controller=>"errors"}
|
8
|
+
#
|
9
|
+
describe "errors response status codes" do
|
10
|
+
describe "POST /errors(.:format)" do
|
11
|
+
it "should have a response", :vcr do
|
12
|
+
format = nil
|
13
|
+
post "/errors#{format ? "." : nil}#{format}"
|
14
|
+
response.status.should be(201)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "PUT /errors/:id(.:format)" do
|
19
|
+
it "should have a response", :vcr do
|
20
|
+
id = "REPLACE"
|
21
|
+
format = nil
|
22
|
+
put "/errors/#{id}#{format ? "." : nil}#{format}"
|
23
|
+
response.status.should be(200)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
describe "DELETE /errors/:id(.:format)" do
|
28
|
+
it "should have a response", :vcr do
|
29
|
+
id = "REPLACE"
|
30
|
+
format = nil
|
31
|
+
delete "/errors/#{id}#{format ? "." : nil}#{format}"
|
32
|
+
response.status.should be(200)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|