lib/spec/rails/example/view_example_group.rb in rspec-rails-1.1.8 vs lib/spec/rails/example/view_example_group.rb in rspec-rails-1.1.9

- old
+ new

@@ -30,11 +30,11 @@ after(:each) do ensure_that_base_view_path_is_not_set_across_example_groups end - def initialize(defined_description, &implementation) #:nodoc: + def initialize(defined_description, options={}, &implementation) #:nodoc: super @controller_class_name = "Spec::Rails::Example::ViewExampleGroupController" end def ensure_that_flash_and_session_work_properly #:nodoc: @@ -61,10 +61,10 @@ "#{parts[0..-2].join('/')}" end def derived_action_name(options) #:nodoc: parts = subject_of_render(options).split('/').reject { |part| part.empty? } - "#{parts.last}" + "#{parts.last}".split('.').first end def subject_of_render(options) #:nodoc: [:template, :partial, :file].each do |render_type| if options.has_key?(render_type)