remarkable_rails 3.0.0

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 (41) hide show
  1. data/CHANGELOG +81 -0
  2. data/LICENSE +20 -0
  3. data/README +2 -0
  4. data/lib/remarkable_rails/action_controller/base.rb +31 -0
  5. data/lib/remarkable_rails/action_controller/macro_stubs.rb +518 -0
  6. data/lib/remarkable_rails/action_controller/matchers/assign_to_matcher.rb +94 -0
  7. data/lib/remarkable_rails/action_controller/matchers/filter_params_matcher.rb +41 -0
  8. data/lib/remarkable_rails/action_controller/matchers/redirect_to_matcher.rb +119 -0
  9. data/lib/remarkable_rails/action_controller/matchers/render_template_matcher.rb +147 -0
  10. data/lib/remarkable_rails/action_controller/matchers/respond_with_matcher.rb +125 -0
  11. data/lib/remarkable_rails/action_controller/matchers/route_matcher.rb +94 -0
  12. data/lib/remarkable_rails/action_controller/matchers/set_session_matcher.rb +108 -0
  13. data/lib/remarkable_rails/action_controller/matchers/set_the_flash_matcher.rb +55 -0
  14. data/lib/remarkable_rails/action_controller.rb +22 -0
  15. data/lib/remarkable_rails/action_view/base.rb +7 -0
  16. data/lib/remarkable_rails/action_view.rb +18 -0
  17. data/lib/remarkable_rails/active_orm.rb +19 -0
  18. data/lib/remarkable_rails.rb +30 -0
  19. data/locale/en.yml +87 -0
  20. data/spec/action_controller/assign_to_matcher_spec.rb +143 -0
  21. data/spec/action_controller/filter_params_matcher_spec.rb +64 -0
  22. data/spec/action_controller/macro_stubs_spec.rb +196 -0
  23. data/spec/action_controller/redirect_to_matcher_spec.rb +102 -0
  24. data/spec/action_controller/render_template_matcher_spec.rb +251 -0
  25. data/spec/action_controller/respond_with_matcher_spec.rb +223 -0
  26. data/spec/action_controller/route_matcher_spec.rb +75 -0
  27. data/spec/action_controller/set_session_matcher_spec.rb +135 -0
  28. data/spec/action_controller/set_the_flash_matcher_spec.rb +95 -0
  29. data/spec/application/application.rb +15 -0
  30. data/spec/application/examples/_example.html.erb +0 -0
  31. data/spec/application/examples/example.html.erb +0 -0
  32. data/spec/application/examples/example.xml.builder +0 -0
  33. data/spec/application/examples/new.html.erb +0 -0
  34. data/spec/application/layouts/examples.html.erb +0 -0
  35. data/spec/application/projects/new.html.erb +0 -0
  36. data/spec/application/tasks_controller.rb +34 -0
  37. data/spec/functional_builder.rb +93 -0
  38. data/spec/rcov.opts +2 -0
  39. data/spec/spec.opts +4 -0
  40. data/spec/spec_helper.rb +44 -0
  41. metadata +134 -0
data/spec/rcov.opts ADDED
@@ -0,0 +1,2 @@
1
+ --exclude "spec/*,gems/*"
2
+ --rails
data/spec/spec.opts ADDED
@@ -0,0 +1,4 @@
1
+ --colour
2
+ --format progress
3
+ --loadby mtime
4
+ --reverse
@@ -0,0 +1,44 @@
1
+ require 'rubygems'
2
+ require 'ruby-debug'
3
+
4
+ RAILS_ENV = 'test'
5
+ RAILS_VERSION = ENV['RAILS_VERSION'] || '=2.2.2'
6
+ RSPEC_VERSION = ENV['RSPEC_VERSION'] || Spec::VERSION::STRING
7
+
8
+ # Load Rails
9
+ gem 'activesupport', RAILS_VERSION
10
+ require 'active_support'
11
+
12
+ gem 'actionpack', RAILS_VERSION
13
+ require 'action_controller'
14
+
15
+ gem 'actionmailer', RAILS_VERSION
16
+ require 'action_mailer'
17
+
18
+ gem 'rails', RAILS_VERSION
19
+ require 'rails/version'
20
+
21
+ # Load Remarkable core on place to avoid gem to be loaded
22
+ dir = File.dirname(__FILE__)
23
+ require File.join(dir, '..', '..', 'remarkable', 'lib', 'remarkable')
24
+
25
+ # Add spec/application to load path and set view_paths
26
+ RAILS_ROOT = File.join(dir, 'application')
27
+ $:.unshift(RAILS_ROOT)
28
+
29
+ ActionController::Base.view_paths = RAILS_ROOT
30
+ require File.join(RAILS_ROOT, 'application')
31
+ require File.join(RAILS_ROOT, 'tasks_controller')
32
+
33
+ # Load Remarkable Rails
34
+ require File.join(dir, 'functional_builder')
35
+
36
+ # Load spec-rails
37
+ gem 'rspec-rails', RSPEC_VERSION
38
+ require 'spec/rails'
39
+
40
+ require File.join(dir, '..', 'lib', 'remarkable_rails')
41
+
42
+ # Register folders to example groups
43
+ Spec::Example::ExampleGroupFactory.register(:action_controller, Spec::Rails::Example::ControllerExampleGroup)
44
+
metadata ADDED
@@ -0,0 +1,134 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: remarkable_rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Carlos Brando
8
+ - "Jos\xC3\xA9 Valim"
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2009-04-09 00:00:00 +02:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: rspec-rails
18
+ type: :runtime
19
+ version_requirement:
20
+ version_requirements: !ruby/object:Gem::Requirement
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: 1.2.0
25
+ version:
26
+ - !ruby/object:Gem::Dependency
27
+ name: remarkable
28
+ type: :runtime
29
+ version_requirement:
30
+ version_requirements: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 3.0.0
35
+ version:
36
+ - !ruby/object:Gem::Dependency
37
+ name: remarkable_activerecord
38
+ type: :runtime
39
+ version_requirement:
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: 3.0.0
45
+ version:
46
+ description: "Remarkable Rails: collection of matchers and macros with I18n for Rails"
47
+ email:
48
+ - eduardobrando@gmail.com
49
+ - jose.valim@gmail.com
50
+ executables: []
51
+
52
+ extensions: []
53
+
54
+ extra_rdoc_files:
55
+ - README
56
+ - LICENSE
57
+ - CHANGELOG
58
+ files:
59
+ - README
60
+ - LICENSE
61
+ - CHANGELOG
62
+ - lib/remarkable_rails
63
+ - lib/remarkable_rails/action_controller
64
+ - lib/remarkable_rails/action_controller/base.rb
65
+ - lib/remarkable_rails/action_controller/macro_stubs.rb
66
+ - lib/remarkable_rails/action_controller/matchers
67
+ - lib/remarkable_rails/action_controller/matchers/assign_to_matcher.rb
68
+ - lib/remarkable_rails/action_controller/matchers/filter_params_matcher.rb
69
+ - lib/remarkable_rails/action_controller/matchers/redirect_to_matcher.rb
70
+ - lib/remarkable_rails/action_controller/matchers/render_template_matcher.rb
71
+ - lib/remarkable_rails/action_controller/matchers/respond_with_matcher.rb
72
+ - lib/remarkable_rails/action_controller/matchers/route_matcher.rb
73
+ - lib/remarkable_rails/action_controller/matchers/set_session_matcher.rb
74
+ - lib/remarkable_rails/action_controller/matchers/set_the_flash_matcher.rb
75
+ - lib/remarkable_rails/action_controller.rb
76
+ - lib/remarkable_rails/action_view
77
+ - lib/remarkable_rails/action_view/base.rb
78
+ - lib/remarkable_rails/action_view.rb
79
+ - lib/remarkable_rails/active_orm.rb
80
+ - lib/remarkable_rails.rb
81
+ - locale/en.yml
82
+ has_rdoc: true
83
+ homepage: http://github.com/carlosbrando/remarkable
84
+ post_install_message:
85
+ rdoc_options: []
86
+
87
+ require_paths:
88
+ - lib
89
+ required_ruby_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: "0"
94
+ version:
95
+ required_rubygems_version: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: "0"
100
+ version:
101
+ requirements: []
102
+
103
+ rubyforge_project: remarkable
104
+ rubygems_version: 1.3.1
105
+ signing_key:
106
+ specification_version: 2
107
+ summary: "Remarkable Rails: collection of matchers and macros with I18n for Rails"
108
+ test_files:
109
+ - spec/action_controller
110
+ - spec/action_controller/assign_to_matcher_spec.rb
111
+ - spec/action_controller/filter_params_matcher_spec.rb
112
+ - spec/action_controller/macro_stubs_spec.rb
113
+ - spec/action_controller/redirect_to_matcher_spec.rb
114
+ - spec/action_controller/render_template_matcher_spec.rb
115
+ - spec/action_controller/respond_with_matcher_spec.rb
116
+ - spec/action_controller/route_matcher_spec.rb
117
+ - spec/action_controller/set_session_matcher_spec.rb
118
+ - spec/action_controller/set_the_flash_matcher_spec.rb
119
+ - spec/application
120
+ - spec/application/application.rb
121
+ - spec/application/examples
122
+ - spec/application/examples/example.html.erb
123
+ - spec/application/examples/example.xml.builder
124
+ - spec/application/examples/new.html.erb
125
+ - spec/application/examples/_example.html.erb
126
+ - spec/application/layouts
127
+ - spec/application/layouts/examples.html.erb
128
+ - spec/application/projects
129
+ - spec/application/projects/new.html.erb
130
+ - spec/application/tasks_controller.rb
131
+ - spec/functional_builder.rb
132
+ - spec/rcov.opts
133
+ - spec/spec.opts
134
+ - spec/spec_helper.rb