riot_rails 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -32,7 +32,7 @@ module Riot #:nodoc:
32
32
  actual_template_path = actual.response.rendered[:template].to_s
33
33
  actual_template_name = File.basename(actual_template_path)
34
34
  msg = "expected template #{name.inspect}, not #{actual_template_path.inspect}"
35
- actual_template_name.to_s.match(/^#{name}(\.\w+)?$/) || fail(msg)
35
+ actual_template_name.to_s.match(/^#{name}(\.\w+)*$/) || fail(msg)
36
36
  end
37
37
 
38
38
  # Asserts that the HTTP response code equals your expectation. You can use the symbolized form of the
data/riot_rails.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{riot_rails}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
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"]
@@ -40,7 +40,7 @@ Gem::Specification.new do |s|
40
40
  "test/active_record/should_allow_values_for_test.rb",
41
41
  "test/active_record/should_validate_presence_of_test.rb",
42
42
  "test/active_record/should_validate_uniqueness_of_test.rb",
43
- "test/rails_root/app/views/rendered_templates/foo_bar.erb",
43
+ "test/rails_root/app/views/rendered_templates/foo_bar.html.erb",
44
44
  "test/rails_root/config/routes.rb",
45
45
  "test/rails_root/db/schema.rb",
46
46
  "test/teststrap.rb"
@@ -36,7 +36,7 @@ context "asserting the rendered template for an action" do
36
36
 
37
37
  asserts("topic message") do
38
38
  topic.result.message
39
- end.matches(/expected template "bar_foo", not "rendered_templates\/foo_bar.erb"/)
39
+ end.matches(/expected template "bar_foo", not "rendered_templates\/foo_bar.html.erb"/)
40
40
  end # when rendered template does not match expectation
41
41
 
42
42
  end # that rendered a template
@@ -87,7 +87,7 @@ context "asserting the rendered template for an action" do
87
87
 
88
88
  asserts("topic message") do
89
89
  topic.result.message
90
- end.matches(/expected template "foo", not "rendered_templates\/foo_bar.erb"/)
90
+ end.matches(/expected template "foo", not "rendered_templates\/foo_bar.html.erb"/)
91
91
  end # that rendered a template with a partial match on template name
92
92
 
93
93
  end # asserting the rendered template for an action
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riot_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin 'Gus' Knowlden
@@ -65,7 +65,7 @@ files:
65
65
  - test/active_record/should_allow_values_for_test.rb
66
66
  - test/active_record/should_validate_presence_of_test.rb
67
67
  - test/active_record/should_validate_uniqueness_of_test.rb
68
- - test/rails_root/app/views/rendered_templates/foo_bar.erb
68
+ - test/rails_root/app/views/rendered_templates/foo_bar.html.erb
69
69
  - test/rails_root/config/routes.rb
70
70
  - test/rails_root/db/schema.rb
71
71
  - test/teststrap.rb