routespec 0.0.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 (177) hide show
  1. data/README.txt +66 -0
  2. data/Rakefile +26 -0
  3. data/bin/routespec +29 -0
  4. data/lib/routespec.rb +22 -0
  5. data/lib/routespec/builder.rb +111 -0
  6. data/lib/routespec/dyr.rb +50 -0
  7. data/lib/routespec/fyle.rb +72 -0
  8. data/lib/routespec/parser.rb +143 -0
  9. data/lib/routespec/railtie.rb +7 -0
  10. data/lib/routespec/routespec/requests/.gitkeep +0 -0
  11. data/lib/routespec/routespec/support/.gitkeep +0 -0
  12. data/lib/routespec/routespec/templates/default_spec.erb +24 -0
  13. data/lib/routespec/tasks.rb +18 -0
  14. data/lib/routespec/tasks/routespec.rake +22 -0
  15. data/lib/routespec/template_vars.rb +7 -0
  16. data/lib/routespec/version.rb +3 -0
  17. data/test/files/awesome.yml +1 -0
  18. data/test/files/response_code_vcr_spec.erb +24 -0
  19. data/test/files/routes.txt +12 -0
  20. data/test/files/routes.yml +193 -0
  21. data/test/files/routes_hash.rb +159 -0
  22. data/test/files/routes_hash_2.rb +153 -0
  23. data/test/files/routes_hash_3.rb +1 -0
  24. data/test/files/tasks_routes.txt +21 -0
  25. data/test/files/template_spec.erb +13 -0
  26. data/test/files/unclean.txt +11 -0
  27. data/test/rails311/Gemfile +4 -0
  28. data/test/rails311/Gemfile.lock +90 -0
  29. data/test/rails311/README +261 -0
  30. data/test/rails311/Rakefile +7 -0
  31. data/test/rails311/app/assets/images/rails.png +0 -0
  32. data/test/rails311/app/assets/javascripts/application.js +9 -0
  33. data/test/rails311/app/assets/javascripts/beers.js +2 -0
  34. data/test/rails311/app/assets/javascripts/chips.js +2 -0
  35. data/test/rails311/app/assets/javascripts/sports.js +2 -0
  36. data/test/rails311/app/assets/stylesheets/application.css +7 -0
  37. data/test/rails311/app/assets/stylesheets/beers.css +4 -0
  38. data/test/rails311/app/assets/stylesheets/chips.css +4 -0
  39. data/test/rails311/app/assets/stylesheets/scaffold.css +56 -0
  40. data/test/rails311/app/assets/stylesheets/sports.css +4 -0
  41. data/test/rails311/app/controllers/application_controller.rb +3 -0
  42. data/test/rails311/app/controllers/beers_controller.rb +83 -0
  43. data/test/rails311/app/controllers/chips_controller.rb +83 -0
  44. data/test/rails311/app/controllers/sports_controller.rb +83 -0
  45. data/test/rails311/app/helpers/application_helper.rb +2 -0
  46. data/test/rails311/app/helpers/beers_helper.rb +2 -0
  47. data/test/rails311/app/helpers/chips_helper.rb +2 -0
  48. data/test/rails311/app/helpers/sports_helper.rb +2 -0
  49. data/test/rails311/app/models/beer.rb +2 -0
  50. data/test/rails311/app/models/chip.rb +2 -0
  51. data/test/rails311/app/models/sport.rb +2 -0
  52. data/test/rails311/app/views/beers/_form.html.erb +17 -0
  53. data/test/rails311/app/views/beers/edit.html.erb +6 -0
  54. data/test/rails311/app/views/beers/index.html.erb +21 -0
  55. data/test/rails311/app/views/beers/new.html.erb +5 -0
  56. data/test/rails311/app/views/beers/show.html.erb +5 -0
  57. data/test/rails311/app/views/chips/_form.html.erb +17 -0
  58. data/test/rails311/app/views/chips/edit.html.erb +6 -0
  59. data/test/rails311/app/views/chips/index.html.erb +21 -0
  60. data/test/rails311/app/views/chips/new.html.erb +5 -0
  61. data/test/rails311/app/views/chips/show.html.erb +5 -0
  62. data/test/rails311/app/views/layouts/application.html.erb +14 -0
  63. data/test/rails311/app/views/sports/_form.html.erb +17 -0
  64. data/test/rails311/app/views/sports/edit.html.erb +6 -0
  65. data/test/rails311/app/views/sports/index.html.erb +21 -0
  66. data/test/rails311/app/views/sports/new.html.erb +5 -0
  67. data/test/rails311/app/views/sports/show.html.erb +5 -0
  68. data/test/rails311/config.ru +4 -0
  69. data/test/rails311/config/application.rb +48 -0
  70. data/test/rails311/config/boot.rb +6 -0
  71. data/test/rails311/config/database.yml +25 -0
  72. data/test/rails311/config/environment.rb +5 -0
  73. data/test/rails311/config/environments/development.rb +30 -0
  74. data/test/rails311/config/environments/production.rb +60 -0
  75. data/test/rails311/config/environments/test.rb +39 -0
  76. data/test/rails311/config/initializers/backtrace_silencers.rb +7 -0
  77. data/test/rails311/config/initializers/inflections.rb +10 -0
  78. data/test/rails311/config/initializers/mime_types.rb +5 -0
  79. data/test/rails311/config/initializers/secret_token.rb +7 -0
  80. data/test/rails311/config/initializers/session_store.rb +8 -0
  81. data/test/rails311/config/initializers/wrap_parameters.rb +14 -0
  82. data/test/rails311/config/locales/en.yml +5 -0
  83. data/test/rails311/config/routes.rb +64 -0
  84. data/test/rails311/db/development.sqlite3 +0 -0
  85. data/test/rails311/db/migrate/20111227222038_create_beers.rb +8 -0
  86. data/test/rails311/db/migrate/20111227222056_create_chips.rb +8 -0
  87. data/test/rails311/db/migrate/20111227222113_create_sports.rb +8 -0
  88. data/test/rails311/db/schema.rb +31 -0
  89. data/test/rails311/db/seeds.rb +7 -0
  90. data/test/rails311/db/test.sqlite3 +0 -0
  91. data/test/rails311/doc/README_FOR_APP +2 -0
  92. data/test/rails311/log/development.log +28 -0
  93. data/test/rails311/log/test.log +0 -0
  94. data/test/rails311/public/404.html +26 -0
  95. data/test/rails311/public/422.html +26 -0
  96. data/test/rails311/public/500.html +26 -0
  97. data/test/rails311/public/favicon.ico +0 -0
  98. data/test/rails311/public/index.html +241 -0
  99. data/test/rails311/public/robots.txt +5 -0
  100. data/test/rails311/script/rails +6 -0
  101. data/test/rails311/spec/routespec/requests/beers/beers_spec.rb +74 -0
  102. data/test/rails311/spec/routespec/requests/chips/chips_spec.rb +74 -0
  103. data/test/rails311/spec/routespec/requests/sports/sports_spec.rb +74 -0
  104. data/test/rails311/spec/routespec/support/routes.txt +21 -0
  105. data/test/rails311/spec/routespec/support/routes.yml +322 -0
  106. data/test/rails311/spec/routespec/templates/default_spec.erb +24 -0
  107. data/test/rails311/test/fixtures/beers.yml +11 -0
  108. data/test/rails311/test/fixtures/chips.yml +11 -0
  109. data/test/rails311/test/fixtures/sports.yml +11 -0
  110. data/test/rails311/test/functional/beers_controller_test.rb +49 -0
  111. data/test/rails311/test/functional/chips_controller_test.rb +49 -0
  112. data/test/rails311/test/functional/sports_controller_test.rb +49 -0
  113. data/test/rails311/test/performance/browsing_test.rb +12 -0
  114. data/test/rails311/test/test_helper.rb +13 -0
  115. data/test/rails311/test/unit/beer_test.rb +7 -0
  116. data/test/rails311/test/unit/chip_test.rb +7 -0
  117. data/test/rails311/test/unit/helpers/beers_helper_test.rb +4 -0
  118. data/test/rails311/test/unit/helpers/chips_helper_test.rb +4 -0
  119. data/test/rails311/test/unit/helpers/sports_helper_test.rb +4 -0
  120. data/test/rails311/test/unit/sport_test.rb +7 -0
  121. data/test/rails311/vendor/cache/actionmailer-3.1.1.gem +0 -0
  122. data/test/rails311/vendor/cache/actionpack-3.1.1.gem +0 -0
  123. data/test/rails311/vendor/cache/activemodel-3.1.1.gem +0 -0
  124. data/test/rails311/vendor/cache/activerecord-3.1.1.gem +0 -0
  125. data/test/rails311/vendor/cache/activeresource-3.1.1.gem +0 -0
  126. data/test/rails311/vendor/cache/activesupport-3.1.1.gem +0 -0
  127. data/test/rails311/vendor/cache/arel-2.2.1.gem +0 -0
  128. data/test/rails311/vendor/cache/builder-3.0.0.gem +0 -0
  129. data/test/rails311/vendor/cache/erubis-2.7.0.gem +0 -0
  130. data/test/rails311/vendor/cache/hike-1.2.1.gem +0 -0
  131. data/test/rails311/vendor/cache/i18n-0.6.0.gem +0 -0
  132. data/test/rails311/vendor/cache/json-1.6.4.gem +0 -0
  133. data/test/rails311/vendor/cache/mail-2.3.0.gem +0 -0
  134. data/test/rails311/vendor/cache/mime-types-1.17.2.gem +0 -0
  135. data/test/rails311/vendor/cache/multi_json-1.0.4.gem +0 -0
  136. data/test/rails311/vendor/cache/polyglot-0.3.3.gem +0 -0
  137. data/test/rails311/vendor/cache/rack-1.3.5.gem +0 -0
  138. data/test/rails311/vendor/cache/rack-cache-1.1.gem +0 -0
  139. data/test/rails311/vendor/cache/rack-mount-0.8.3.gem +0 -0
  140. data/test/rails311/vendor/cache/rack-ssl-1.3.2.gem +0 -0
  141. data/test/rails311/vendor/cache/rack-test-0.6.1.gem +0 -0
  142. data/test/rails311/vendor/cache/rails-3.1.1.gem +0 -0
  143. data/test/rails311/vendor/cache/railties-3.1.1.gem +0 -0
  144. data/test/rails311/vendor/cache/rake-0.9.2.2.gem +0 -0
  145. data/test/rails311/vendor/cache/rdoc-3.12.gem +0 -0
  146. data/test/rails311/vendor/cache/sprockets-2.0.3.gem +0 -0
  147. data/test/rails311/vendor/cache/sqlite3-1.3.5.gem +0 -0
  148. data/test/rails311/vendor/cache/thor-0.14.6.gem +0 -0
  149. data/test/rails311/vendor/cache/tilt-1.3.3.gem +0 -0
  150. data/test/rails311/vendor/cache/treetop-1.4.10.gem +0 -0
  151. data/test/rails311/vendor/cache/tzinfo-0.3.31.gem +0 -0
  152. data/test/sandbox/awsome.txt +1 -0
  153. data/test/sandbox/cerveja/muito_legal/cool/cool_spec.rb +1 -0
  154. data/test/sandbox/cerveja/rad/rad_spec.rb +1 -0
  155. data/test/sandbox/cool.txt +4 -0
  156. data/test/sandbox/rails_root/routespec/templates/default_spec.erb +24 -0
  157. data/test/sandbox/requests/dynamic/dynamic_spec.rb +17 -0
  158. data/test/sandbox/requests/errors/errors_spec.rb +36 -0
  159. data/test/sandbox/requests/info_panel/info_panel_spec.rb +16 -0
  160. data/test/sandbox/requests/legacy/legacy_spec.rb +26 -0
  161. data/test/sandbox/requests2/dynamic/dynamic_spec.rb +17 -0
  162. data/test/sandbox/requests2/errors/errors_spec.rb +36 -0
  163. data/test/sandbox/requests2/info_panel/info_panel_spec.rb +16 -0
  164. data/test/sandbox/requests2/legacy/legacy_spec.rb +26 -0
  165. data/test/sandbox/routes.txt +21 -0
  166. data/test/sandbox/routes.yml +193 -0
  167. data/test/sandbox/seu_jorge.yml +3 -0
  168. data/test/test_builder.rb +118 -0
  169. data/test/test_config.rb +5 -0
  170. data/test/test_dyr.rb +56 -0
  171. data/test/test_fyle.rb +59 -0
  172. data/test/test_parser.rb +84 -0
  173. data/test/test_rails311.rb +15 -0
  174. data/test/test_routespec.rb +8 -0
  175. data/test/test_tasks.rb +26 -0
  176. data/test/test_template_vars.rb +18 -0
  177. metadata +382 -0
@@ -0,0 +1,5 @@
1
+ require "test/unit"
2
+ require "routespec"
3
+
4
+ class TestConfig < Test::Unit::TestCase
5
+ end
data/test/test_dyr.rb ADDED
@@ -0,0 +1,56 @@
1
+ require "test/unit"
2
+ require "routespec"
3
+
4
+ class TestDyr < Test::Unit::TestCase
5
+ def setup
6
+ @sandbox = "#{File.dirname(__FILE__)}/sandbox"
7
+ @root_dir = "#{@sandbox}/root"
8
+ @requests = "#{@sandbox}/requests"
9
+ [@sandbox, @root_dir, @requests].each {|x| Dir.mkdir(x) unless Dir.exist?(x)}
10
+ end
11
+
12
+ def test_array_to_dirs
13
+ array = %w[lion leopard tiger]
14
+ array.each {|x| Dir.rmdir("#{@root_dir}/#{x}") if Dir.exist?("#{@root_dir}/#{x}")}
15
+ ret = Routespec::Dyr.array_to_dirs(@root_dir, array)
16
+ assert_equal true, ret
17
+ assert_equal (array + %w[. ..]).sort, Dir.entries(@root_dir).sort
18
+ end
19
+
20
+ def test_create_dir
21
+ example_dir = "#{@sandbox}/case_o_beer"
22
+ FileUtils.rm_rf(example_dir) if Dir.exist?(example_dir)
23
+ refute Dir.exist?(example_dir)
24
+ ret = Routespec::Dyr.create_dir(example_dir)
25
+ assert_equal true, ret
26
+ assert Dir.exist?(example_dir)
27
+ end
28
+
29
+ def test_destroy_dir
30
+ example_dir = "#{@sandbox}/jack_o_lantern"
31
+ Dir.mkdir(example_dir) unless Dir.exist?(example_dir)
32
+ assert Dir.exist?(example_dir)
33
+ ret = Routespec::Dyr.destroy_dir(example_dir)
34
+ assert_equal true, ret
35
+ refute Dir.exist?(example_dir)
36
+ end
37
+
38
+ def test_array_to_nested_dirs
39
+ FileUtils.rm_rf "#{@requests}/testing"
40
+ array = %w[testing testing one two three]
41
+ ret = Routespec::Dyr.array_to_nested_dirs(array, @requests)
42
+ assert_equal true, ret
43
+ assert(Dir.exist?("#{@requests}/testing/testing/one/two/three"))
44
+ end
45
+
46
+ def test_init
47
+ output_dir_name = "#{@sandbox}/rails_root"
48
+ FileUtils.rm_rf output_dir_name
49
+ refute Dir.exist? output_dir_name
50
+ Dir.mkdir output_dir_name
51
+ assert Dir.exist? output_dir_name
52
+ ret = Routespec::Dyr.init(output_dir_name)
53
+ assert_equal true, ret
54
+ assert_equal [".", "..", "routespec"], Dir.entries(output_dir_name)
55
+ end
56
+ end
data/test/test_fyle.rb ADDED
@@ -0,0 +1,59 @@
1
+ require "test/unit"
2
+ require "routespec"
3
+
4
+ class TestFyle < Test::Unit::TestCase
5
+ def setup
6
+ @files = "#{File.dirname(__FILE__)}/files"
7
+ @sandbox = "#{File.dirname(__FILE__)}/sandbox"
8
+ end
9
+
10
+ # def test_file_or_dir
11
+ # flunk
12
+ # end
13
+ #
14
+ # def test_parse_file_name
15
+ # flunk
16
+ # end
17
+
18
+ def test_spec_file_name
19
+ assert_equal(Routespec::Fyle.spec_file_name(["beer", "is"], "awesome", "yes"), "yes/beer/is/awesome_spec.rb")
20
+ end
21
+
22
+ def test_hash_to_yaml_file
23
+ hash = {2 => "Sao Gronca", 4 => "Ana Carolina"}
24
+ file_name = "#{@sandbox}/seu_jorge.yml"
25
+ FileUtils.rm_f(file_name)
26
+ refute File.exist?(file_name)
27
+ ret = Routespec::Fyle.hash_to_yaml_file(hash, file_name)
28
+ assert_equal true, ret
29
+ assert_equal "--- \n2: Sao Gronca\n4: Ana Carolina\n", IO.read(file_name)
30
+ end
31
+
32
+ def test_hash_from_yaml_file
33
+ hash = Routespec::Fyle.hash_from_yaml_file("#{@files}/awesome.yml")
34
+ assert hash.is_a?(Hash)
35
+ assert_equal hash.first, [:awesome, "beer"]
36
+ end
37
+
38
+ def test_string_to_file
39
+ str = "awesome"
40
+ file_name = "#{@sandbox}/awsome.txt"
41
+ FileUtils.rm_f(file_name)
42
+ refute File.exist?(file_name)
43
+ ret = Routespec::Fyle.string_to_file(str, file_name)
44
+ assert_equal true, ret
45
+ assert File.exist?(file_name)
46
+ assert_equal "awesome", IO.read(file_name)
47
+ end
48
+
49
+ def test_array_to_file
50
+ array = %w[awesome rad cool dude]
51
+ file_name = "#{@sandbox}/cool.txt"
52
+ FileUtils.rm_f(file_name)
53
+ refute File.exist?(file_name)
54
+ ret = Routespec::Fyle.array_to_file(array, file_name)
55
+ assert_equal true, ret
56
+ assert File.exist?(file_name)
57
+ assert_equal "awesome\nrad\ncool\ndude\n", IO.read(file_name)
58
+ end
59
+ end
@@ -0,0 +1,84 @@
1
+ require "test/unit"
2
+ require "routespec"
3
+
4
+ class TestParser < Test::Unit::TestCase
5
+ def setup
6
+ @files = "#{File.dirname(__FILE__)}/files"
7
+ @routes_txt = "#{@files}/routes.txt"
8
+ text = IO.read("#{@files}/routes_hash.rb")
9
+ eval("@routes_hash = #{text}")
10
+ text = IO.read("#{@files}/routes_hash_2.rb")
11
+ eval("@routes_hash_2 = #{text}")
12
+ end
13
+
14
+ def test_parse
15
+ assert File.exist?(@routes_txt)
16
+ ret = Routespec::Parser.parse(@routes_txt)
17
+ assert_kind_of Hash, ret
18
+ end
19
+
20
+ def test_routes_to_hash
21
+ assert File.exist?(@routes_txt)
22
+ ret = Routespec::Parser.routes_to_hash(@routes_txt)
23
+ assert_equal @routes_hash, ret
24
+ end
25
+
26
+ def test_lines_to_hash
27
+ assert_equal @routes_hash_2, Routespec::Parser.lines_to_hash(@routes_hash[:lines])
28
+ end
29
+
30
+ def test_address_parse
31
+ address = "agents_and_offices/photos"
32
+ assert_equal %w[agents_and_offices photos], Routespec::Parser.address_parse(address)
33
+ end
34
+
35
+ def test_path_parse
36
+ path = "/agents/:agent_id/listings/:listing_id/galleries/:gallery_id/photos/:id(.:format)"
37
+ assert_equal %w[agent_id listing_id gallery_id id format], Routespec::Parser.path_parse(path)
38
+ end
39
+
40
+ def test_variable_lines
41
+ array = %w[agent_id listing_id gallery_id id format]
42
+ array_2 = ["agent_id = \"REPLACE\"",
43
+ "listing_id = \"REPLACE\"",
44
+ "gallery_id = \"REPLACE\"",
45
+ "id = \"REPLACE\"",
46
+ "format = nil"]
47
+ assert_equal array_2, Routespec::Parser.variable_lines(array)
48
+ end
49
+
50
+ def test_helper_helper_with_helper_and_with_array
51
+ helper_string = "awesome"
52
+ path_string = "awesome"
53
+ array = %w[beer chips football]
54
+ exp = "awesome_path(:beer => beer, :chips => chips, :football => football)"
55
+ Routespec::Parser.helper_helper(helper_string, path_string, array)
56
+ end
57
+
58
+ def test_helper_helper_with_helper_and_without_array
59
+ helper_string = "awesome"
60
+ path_string = "awesome"
61
+ array = []
62
+ exp = "awesome_path(:beer => beer, :chips => chips, :football => football)"
63
+ Routespec::Parser.helper_helper(helper_string, path_string, array)
64
+ end
65
+
66
+ def test_helper_helper_without_helper
67
+ helper_string = nil
68
+ path_string = "awesome/:beer/:chips/:football(.:format)"
69
+ array = []
70
+ exp = '/awesome/#{beer}/#{chips}/#{football}#{format ? "." : nil}#{format}'
71
+ Routespec::Parser.helper_helper(helper_string, path_string, array)
72
+ end
73
+
74
+ def test_line_parse
75
+ @routes_hash[:lines].each {|k,v|
76
+ address = "[:#{v[:address].join("][:")}]"
77
+ arr = nil
78
+ eval "arr = @routes_hash_2#{address}"
79
+ ret = Routespec::Parser.line_parse(v[:raw], ((v[:raw] =~ Routespec::Parser::VALIDATE_DYNAMIC_CONTROLLER_REGEX) ? {:address => ["dynamic"]} : {}))
80
+ assert_kind_of Hash, ret
81
+ assert_includes arr, ret
82
+ }
83
+ end
84
+ end
@@ -0,0 +1,15 @@
1
+ require 'test/unit'
2
+ require 'rubygems'
3
+ require 'bundler'
4
+ ENV['RAILS_ENV'] = 'test'
5
+ ENV['BUNDLE_GEMFILE'] = "#{File.dirname(__FILE__)}/rails311/Gemfile"
6
+ require "rails311/config/environment"
7
+ # routespec required in Gemfile
8
+ #require "routespec"
9
+
10
+ class TestRails311 < Test::Unit::TestCase
11
+ def test_rails
12
+ assert defined?(Rails)
13
+ assert_equal "#{File.dirname(__FILE__)}/rails311", Rails.root.to_s
14
+ end
15
+ end
@@ -0,0 +1,8 @@
1
+ require "test/unit"
2
+ require "routespec"
3
+
4
+ class TestRoutespec < Test::Unit::TestCase
5
+ def test_sanity
6
+ #flunk "write tests or I will kneecap you"
7
+ end
8
+ end
@@ -0,0 +1,26 @@
1
+ require 'test/unit'
2
+ require 'routespec'
3
+
4
+ class TestTasks < Test::Unit::TestCase
5
+ def setup
6
+ @file = File.dirname(__FILE__)
7
+ @files = "#{@file}/files"
8
+ @sandbox = "#{@file}/sandbox"
9
+ @rails = "#{@file}/rails311"
10
+ end
11
+
12
+ def test_tasks_module
13
+ assert defined? Routespec::Tasks
14
+ end
15
+
16
+ def test_routes
17
+ file_name = "#{@sandbox}/routes.txt"
18
+ exp_file_name = "#{@files}/tasks_routes.txt"
19
+ FileUtils.rm_f(file_name)
20
+ refute File.exist? file_name
21
+ ret = Routespec::Tasks.routes(@rails, file_name)
22
+ assert_equal true, ret
23
+ assert File.exist? file_name
24
+ assert_equal IO.read(exp_file_name), IO.read(file_name)
25
+ end
26
+ end
@@ -0,0 +1,18 @@
1
+ require "test/unit"
2
+ require "routespec"
3
+
4
+ class TestTemplateVars < Test::Unit::TestCase
5
+ def test_template_class
6
+ assert_kind_of Class, Routespec::TemplateVars
7
+ assert Routespec::TemplateVars.new
8
+ end
9
+
10
+ def test_get_binding
11
+ obj = Routespec::TemplateVars.new
12
+ assert_kind_of Binding, obj.get_binding
13
+ refute eval("@cool", obj.get_binding)
14
+ obj.instance_variable_set("@cool", "dude")
15
+ act = eval("@cool", obj.get_binding)
16
+ assert_equal "dude", act
17
+ end
18
+ end
metadata ADDED
@@ -0,0 +1,382 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: routespec
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - So Awesome Man
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-12-28 00:00:00.000000000Z
13
+ dependencies: []
14
+ description: RSpec test writing automation for request testing routes exposed in config/routes.rb
15
+ email:
16
+ - callme@1800AWESO.ME
17
+ executables:
18
+ - routespec
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - lib/routespec/builder.rb
23
+ - lib/routespec/dyr.rb
24
+ - lib/routespec/fyle.rb
25
+ - lib/routespec/parser.rb
26
+ - lib/routespec/railtie.rb
27
+ - lib/routespec/routespec/templates/default_spec.erb
28
+ - lib/routespec/tasks/routespec.rake
29
+ - lib/routespec/tasks.rb
30
+ - lib/routespec/template_vars.rb
31
+ - lib/routespec/version.rb
32
+ - lib/routespec.rb
33
+ - bin/routespec
34
+ - Rakefile
35
+ - README.txt
36
+ - lib/routespec/routespec/support/.gitkeep
37
+ - lib/routespec/routespec/requests/.gitkeep
38
+ - test/files/awesome.yml
39
+ - test/files/response_code_vcr_spec.erb
40
+ - test/files/routes.txt
41
+ - test/files/routes.yml
42
+ - test/files/routes_hash.rb
43
+ - test/files/routes_hash_2.rb
44
+ - test/files/routes_hash_3.rb
45
+ - test/files/tasks_routes.txt
46
+ - test/files/template_spec.erb
47
+ - test/files/unclean.txt
48
+ - test/rails311/app/assets/images/rails.png
49
+ - test/rails311/app/assets/javascripts/application.js
50
+ - test/rails311/app/assets/javascripts/beers.js
51
+ - test/rails311/app/assets/javascripts/chips.js
52
+ - test/rails311/app/assets/javascripts/sports.js
53
+ - test/rails311/app/assets/stylesheets/application.css
54
+ - test/rails311/app/assets/stylesheets/beers.css
55
+ - test/rails311/app/assets/stylesheets/chips.css
56
+ - test/rails311/app/assets/stylesheets/scaffold.css
57
+ - test/rails311/app/assets/stylesheets/sports.css
58
+ - test/rails311/app/controllers/application_controller.rb
59
+ - test/rails311/app/controllers/beers_controller.rb
60
+ - test/rails311/app/controllers/chips_controller.rb
61
+ - test/rails311/app/controllers/sports_controller.rb
62
+ - test/rails311/app/helpers/application_helper.rb
63
+ - test/rails311/app/helpers/beers_helper.rb
64
+ - test/rails311/app/helpers/chips_helper.rb
65
+ - test/rails311/app/helpers/sports_helper.rb
66
+ - test/rails311/app/models/beer.rb
67
+ - test/rails311/app/models/chip.rb
68
+ - test/rails311/app/models/sport.rb
69
+ - test/rails311/app/views/beers/_form.html.erb
70
+ - test/rails311/app/views/beers/edit.html.erb
71
+ - test/rails311/app/views/beers/index.html.erb
72
+ - test/rails311/app/views/beers/new.html.erb
73
+ - test/rails311/app/views/beers/show.html.erb
74
+ - test/rails311/app/views/chips/_form.html.erb
75
+ - test/rails311/app/views/chips/edit.html.erb
76
+ - test/rails311/app/views/chips/index.html.erb
77
+ - test/rails311/app/views/chips/new.html.erb
78
+ - test/rails311/app/views/chips/show.html.erb
79
+ - test/rails311/app/views/layouts/application.html.erb
80
+ - test/rails311/app/views/sports/_form.html.erb
81
+ - test/rails311/app/views/sports/edit.html.erb
82
+ - test/rails311/app/views/sports/index.html.erb
83
+ - test/rails311/app/views/sports/new.html.erb
84
+ - test/rails311/app/views/sports/show.html.erb
85
+ - test/rails311/config/application.rb
86
+ - test/rails311/config/boot.rb
87
+ - test/rails311/config/database.yml
88
+ - test/rails311/config/environment.rb
89
+ - test/rails311/config/environments/development.rb
90
+ - test/rails311/config/environments/production.rb
91
+ - test/rails311/config/environments/test.rb
92
+ - test/rails311/config/initializers/backtrace_silencers.rb
93
+ - test/rails311/config/initializers/inflections.rb
94
+ - test/rails311/config/initializers/mime_types.rb
95
+ - test/rails311/config/initializers/secret_token.rb
96
+ - test/rails311/config/initializers/session_store.rb
97
+ - test/rails311/config/initializers/wrap_parameters.rb
98
+ - test/rails311/config/locales/en.yml
99
+ - test/rails311/config/routes.rb
100
+ - test/rails311/config.ru
101
+ - test/rails311/db/development.sqlite3
102
+ - test/rails311/db/migrate/20111227222038_create_beers.rb
103
+ - test/rails311/db/migrate/20111227222056_create_chips.rb
104
+ - test/rails311/db/migrate/20111227222113_create_sports.rb
105
+ - test/rails311/db/schema.rb
106
+ - test/rails311/db/seeds.rb
107
+ - test/rails311/db/test.sqlite3
108
+ - test/rails311/doc/README_FOR_APP
109
+ - test/rails311/Gemfile
110
+ - test/rails311/Gemfile.lock
111
+ - test/rails311/log/development.log
112
+ - test/rails311/log/test.log
113
+ - test/rails311/public/404.html
114
+ - test/rails311/public/422.html
115
+ - test/rails311/public/500.html
116
+ - test/rails311/public/favicon.ico
117
+ - test/rails311/public/index.html
118
+ - test/rails311/public/robots.txt
119
+ - test/rails311/Rakefile
120
+ - test/rails311/README
121
+ - test/rails311/script/rails
122
+ - test/rails311/spec/routespec/requests/beers/beers_spec.rb
123
+ - test/rails311/spec/routespec/requests/chips/chips_spec.rb
124
+ - test/rails311/spec/routespec/requests/sports/sports_spec.rb
125
+ - test/rails311/spec/routespec/support/routes.txt
126
+ - test/rails311/spec/routespec/support/routes.yml
127
+ - test/rails311/spec/routespec/templates/default_spec.erb
128
+ - test/rails311/test/fixtures/beers.yml
129
+ - test/rails311/test/fixtures/chips.yml
130
+ - test/rails311/test/fixtures/sports.yml
131
+ - test/rails311/test/functional/beers_controller_test.rb
132
+ - test/rails311/test/functional/chips_controller_test.rb
133
+ - test/rails311/test/functional/sports_controller_test.rb
134
+ - test/rails311/test/performance/browsing_test.rb
135
+ - test/rails311/test/test_helper.rb
136
+ - test/rails311/test/unit/beer_test.rb
137
+ - test/rails311/test/unit/chip_test.rb
138
+ - test/rails311/test/unit/helpers/beers_helper_test.rb
139
+ - test/rails311/test/unit/helpers/chips_helper_test.rb
140
+ - test/rails311/test/unit/helpers/sports_helper_test.rb
141
+ - test/rails311/test/unit/sport_test.rb
142
+ - test/rails311/vendor/cache/actionmailer-3.1.1.gem
143
+ - test/rails311/vendor/cache/actionpack-3.1.1.gem
144
+ - test/rails311/vendor/cache/activemodel-3.1.1.gem
145
+ - test/rails311/vendor/cache/activerecord-3.1.1.gem
146
+ - test/rails311/vendor/cache/activeresource-3.1.1.gem
147
+ - test/rails311/vendor/cache/activesupport-3.1.1.gem
148
+ - test/rails311/vendor/cache/arel-2.2.1.gem
149
+ - test/rails311/vendor/cache/builder-3.0.0.gem
150
+ - test/rails311/vendor/cache/erubis-2.7.0.gem
151
+ - test/rails311/vendor/cache/hike-1.2.1.gem
152
+ - test/rails311/vendor/cache/i18n-0.6.0.gem
153
+ - test/rails311/vendor/cache/json-1.6.4.gem
154
+ - test/rails311/vendor/cache/mail-2.3.0.gem
155
+ - test/rails311/vendor/cache/mime-types-1.17.2.gem
156
+ - test/rails311/vendor/cache/multi_json-1.0.4.gem
157
+ - test/rails311/vendor/cache/polyglot-0.3.3.gem
158
+ - test/rails311/vendor/cache/rack-1.3.5.gem
159
+ - test/rails311/vendor/cache/rack-cache-1.1.gem
160
+ - test/rails311/vendor/cache/rack-mount-0.8.3.gem
161
+ - test/rails311/vendor/cache/rack-ssl-1.3.2.gem
162
+ - test/rails311/vendor/cache/rack-test-0.6.1.gem
163
+ - test/rails311/vendor/cache/rails-3.1.1.gem
164
+ - test/rails311/vendor/cache/railties-3.1.1.gem
165
+ - test/rails311/vendor/cache/rake-0.9.2.2.gem
166
+ - test/rails311/vendor/cache/rdoc-3.12.gem
167
+ - test/rails311/vendor/cache/sprockets-2.0.3.gem
168
+ - test/rails311/vendor/cache/sqlite3-1.3.5.gem
169
+ - test/rails311/vendor/cache/thor-0.14.6.gem
170
+ - test/rails311/vendor/cache/tilt-1.3.3.gem
171
+ - test/rails311/vendor/cache/treetop-1.4.10.gem
172
+ - test/rails311/vendor/cache/tzinfo-0.3.31.gem
173
+ - test/sandbox/awsome.txt
174
+ - test/sandbox/cerveja/muito_legal/cool/cool_spec.rb
175
+ - test/sandbox/cerveja/rad/rad_spec.rb
176
+ - test/sandbox/cool.txt
177
+ - test/sandbox/rails_root/routespec/templates/default_spec.erb
178
+ - test/sandbox/requests/dynamic/dynamic_spec.rb
179
+ - test/sandbox/requests/errors/errors_spec.rb
180
+ - test/sandbox/requests/info_panel/info_panel_spec.rb
181
+ - test/sandbox/requests/legacy/legacy_spec.rb
182
+ - test/sandbox/requests2/dynamic/dynamic_spec.rb
183
+ - test/sandbox/requests2/errors/errors_spec.rb
184
+ - test/sandbox/requests2/info_panel/info_panel_spec.rb
185
+ - test/sandbox/requests2/legacy/legacy_spec.rb
186
+ - test/sandbox/routes.txt
187
+ - test/sandbox/routes.yml
188
+ - test/sandbox/seu_jorge.yml
189
+ - test/test_builder.rb
190
+ - test/test_config.rb
191
+ - test/test_dyr.rb
192
+ - test/test_fyle.rb
193
+ - test/test_parser.rb
194
+ - test/test_rails311.rb
195
+ - test/test_routespec.rb
196
+ - test/test_tasks.rb
197
+ - test/test_template_vars.rb
198
+ homepage: http://www.windermeresolutions.com
199
+ licenses: []
200
+ post_install_message:
201
+ rdoc_options: []
202
+ require_paths:
203
+ - lib
204
+ required_ruby_version: !ruby/object:Gem::Requirement
205
+ none: false
206
+ requirements:
207
+ - - ! '>='
208
+ - !ruby/object:Gem::Version
209
+ version: '0'
210
+ required_rubygems_version: !ruby/object:Gem::Requirement
211
+ none: false
212
+ requirements:
213
+ - - ! '>='
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ requirements: []
217
+ rubyforge_project:
218
+ rubygems_version: 1.8.10
219
+ signing_key:
220
+ specification_version: 3
221
+ summary: Programmatically writing tests for more preciseness seems like a good idea!
222
+ test_files:
223
+ - test/files/awesome.yml
224
+ - test/files/response_code_vcr_spec.erb
225
+ - test/files/routes.txt
226
+ - test/files/routes.yml
227
+ - test/files/routes_hash.rb
228
+ - test/files/routes_hash_2.rb
229
+ - test/files/routes_hash_3.rb
230
+ - test/files/tasks_routes.txt
231
+ - test/files/template_spec.erb
232
+ - test/files/unclean.txt
233
+ - test/rails311/app/assets/images/rails.png
234
+ - test/rails311/app/assets/javascripts/application.js
235
+ - test/rails311/app/assets/javascripts/beers.js
236
+ - test/rails311/app/assets/javascripts/chips.js
237
+ - test/rails311/app/assets/javascripts/sports.js
238
+ - test/rails311/app/assets/stylesheets/application.css
239
+ - test/rails311/app/assets/stylesheets/beers.css
240
+ - test/rails311/app/assets/stylesheets/chips.css
241
+ - test/rails311/app/assets/stylesheets/scaffold.css
242
+ - test/rails311/app/assets/stylesheets/sports.css
243
+ - test/rails311/app/controllers/application_controller.rb
244
+ - test/rails311/app/controllers/beers_controller.rb
245
+ - test/rails311/app/controllers/chips_controller.rb
246
+ - test/rails311/app/controllers/sports_controller.rb
247
+ - test/rails311/app/helpers/application_helper.rb
248
+ - test/rails311/app/helpers/beers_helper.rb
249
+ - test/rails311/app/helpers/chips_helper.rb
250
+ - test/rails311/app/helpers/sports_helper.rb
251
+ - test/rails311/app/models/beer.rb
252
+ - test/rails311/app/models/chip.rb
253
+ - test/rails311/app/models/sport.rb
254
+ - test/rails311/app/views/beers/_form.html.erb
255
+ - test/rails311/app/views/beers/edit.html.erb
256
+ - test/rails311/app/views/beers/index.html.erb
257
+ - test/rails311/app/views/beers/new.html.erb
258
+ - test/rails311/app/views/beers/show.html.erb
259
+ - test/rails311/app/views/chips/_form.html.erb
260
+ - test/rails311/app/views/chips/edit.html.erb
261
+ - test/rails311/app/views/chips/index.html.erb
262
+ - test/rails311/app/views/chips/new.html.erb
263
+ - test/rails311/app/views/chips/show.html.erb
264
+ - test/rails311/app/views/layouts/application.html.erb
265
+ - test/rails311/app/views/sports/_form.html.erb
266
+ - test/rails311/app/views/sports/edit.html.erb
267
+ - test/rails311/app/views/sports/index.html.erb
268
+ - test/rails311/app/views/sports/new.html.erb
269
+ - test/rails311/app/views/sports/show.html.erb
270
+ - test/rails311/config/application.rb
271
+ - test/rails311/config/boot.rb
272
+ - test/rails311/config/database.yml
273
+ - test/rails311/config/environment.rb
274
+ - test/rails311/config/environments/development.rb
275
+ - test/rails311/config/environments/production.rb
276
+ - test/rails311/config/environments/test.rb
277
+ - test/rails311/config/initializers/backtrace_silencers.rb
278
+ - test/rails311/config/initializers/inflections.rb
279
+ - test/rails311/config/initializers/mime_types.rb
280
+ - test/rails311/config/initializers/secret_token.rb
281
+ - test/rails311/config/initializers/session_store.rb
282
+ - test/rails311/config/initializers/wrap_parameters.rb
283
+ - test/rails311/config/locales/en.yml
284
+ - test/rails311/config/routes.rb
285
+ - test/rails311/config.ru
286
+ - test/rails311/db/development.sqlite3
287
+ - test/rails311/db/migrate/20111227222038_create_beers.rb
288
+ - test/rails311/db/migrate/20111227222056_create_chips.rb
289
+ - test/rails311/db/migrate/20111227222113_create_sports.rb
290
+ - test/rails311/db/schema.rb
291
+ - test/rails311/db/seeds.rb
292
+ - test/rails311/db/test.sqlite3
293
+ - test/rails311/doc/README_FOR_APP
294
+ - test/rails311/Gemfile
295
+ - test/rails311/Gemfile.lock
296
+ - test/rails311/log/development.log
297
+ - test/rails311/log/test.log
298
+ - test/rails311/public/404.html
299
+ - test/rails311/public/422.html
300
+ - test/rails311/public/500.html
301
+ - test/rails311/public/favicon.ico
302
+ - test/rails311/public/index.html
303
+ - test/rails311/public/robots.txt
304
+ - test/rails311/Rakefile
305
+ - test/rails311/README
306
+ - test/rails311/script/rails
307
+ - test/rails311/spec/routespec/requests/beers/beers_spec.rb
308
+ - test/rails311/spec/routespec/requests/chips/chips_spec.rb
309
+ - test/rails311/spec/routespec/requests/sports/sports_spec.rb
310
+ - test/rails311/spec/routespec/support/routes.txt
311
+ - test/rails311/spec/routespec/support/routes.yml
312
+ - test/rails311/spec/routespec/templates/default_spec.erb
313
+ - test/rails311/test/fixtures/beers.yml
314
+ - test/rails311/test/fixtures/chips.yml
315
+ - test/rails311/test/fixtures/sports.yml
316
+ - test/rails311/test/functional/beers_controller_test.rb
317
+ - test/rails311/test/functional/chips_controller_test.rb
318
+ - test/rails311/test/functional/sports_controller_test.rb
319
+ - test/rails311/test/performance/browsing_test.rb
320
+ - test/rails311/test/test_helper.rb
321
+ - test/rails311/test/unit/beer_test.rb
322
+ - test/rails311/test/unit/chip_test.rb
323
+ - test/rails311/test/unit/helpers/beers_helper_test.rb
324
+ - test/rails311/test/unit/helpers/chips_helper_test.rb
325
+ - test/rails311/test/unit/helpers/sports_helper_test.rb
326
+ - test/rails311/test/unit/sport_test.rb
327
+ - test/rails311/vendor/cache/actionmailer-3.1.1.gem
328
+ - test/rails311/vendor/cache/actionpack-3.1.1.gem
329
+ - test/rails311/vendor/cache/activemodel-3.1.1.gem
330
+ - test/rails311/vendor/cache/activerecord-3.1.1.gem
331
+ - test/rails311/vendor/cache/activeresource-3.1.1.gem
332
+ - test/rails311/vendor/cache/activesupport-3.1.1.gem
333
+ - test/rails311/vendor/cache/arel-2.2.1.gem
334
+ - test/rails311/vendor/cache/builder-3.0.0.gem
335
+ - test/rails311/vendor/cache/erubis-2.7.0.gem
336
+ - test/rails311/vendor/cache/hike-1.2.1.gem
337
+ - test/rails311/vendor/cache/i18n-0.6.0.gem
338
+ - test/rails311/vendor/cache/json-1.6.4.gem
339
+ - test/rails311/vendor/cache/mail-2.3.0.gem
340
+ - test/rails311/vendor/cache/mime-types-1.17.2.gem
341
+ - test/rails311/vendor/cache/multi_json-1.0.4.gem
342
+ - test/rails311/vendor/cache/polyglot-0.3.3.gem
343
+ - test/rails311/vendor/cache/rack-1.3.5.gem
344
+ - test/rails311/vendor/cache/rack-cache-1.1.gem
345
+ - test/rails311/vendor/cache/rack-mount-0.8.3.gem
346
+ - test/rails311/vendor/cache/rack-ssl-1.3.2.gem
347
+ - test/rails311/vendor/cache/rack-test-0.6.1.gem
348
+ - test/rails311/vendor/cache/rails-3.1.1.gem
349
+ - test/rails311/vendor/cache/railties-3.1.1.gem
350
+ - test/rails311/vendor/cache/rake-0.9.2.2.gem
351
+ - test/rails311/vendor/cache/rdoc-3.12.gem
352
+ - test/rails311/vendor/cache/sprockets-2.0.3.gem
353
+ - test/rails311/vendor/cache/sqlite3-1.3.5.gem
354
+ - test/rails311/vendor/cache/thor-0.14.6.gem
355
+ - test/rails311/vendor/cache/tilt-1.3.3.gem
356
+ - test/rails311/vendor/cache/treetop-1.4.10.gem
357
+ - test/rails311/vendor/cache/tzinfo-0.3.31.gem
358
+ - test/sandbox/awsome.txt
359
+ - test/sandbox/cerveja/muito_legal/cool/cool_spec.rb
360
+ - test/sandbox/cerveja/rad/rad_spec.rb
361
+ - test/sandbox/cool.txt
362
+ - test/sandbox/rails_root/routespec/templates/default_spec.erb
363
+ - test/sandbox/requests/dynamic/dynamic_spec.rb
364
+ - test/sandbox/requests/errors/errors_spec.rb
365
+ - test/sandbox/requests/info_panel/info_panel_spec.rb
366
+ - test/sandbox/requests/legacy/legacy_spec.rb
367
+ - test/sandbox/requests2/dynamic/dynamic_spec.rb
368
+ - test/sandbox/requests2/errors/errors_spec.rb
369
+ - test/sandbox/requests2/info_panel/info_panel_spec.rb
370
+ - test/sandbox/requests2/legacy/legacy_spec.rb
371
+ - test/sandbox/routes.txt
372
+ - test/sandbox/routes.yml
373
+ - test/sandbox/seu_jorge.yml
374
+ - test/test_builder.rb
375
+ - test/test_config.rb
376
+ - test/test_dyr.rb
377
+ - test/test_fyle.rb
378
+ - test/test_parser.rb
379
+ - test/test_rails311.rb
380
+ - test/test_routespec.rb
381
+ - test/test_tasks.rb
382
+ - test/test_template_vars.rb