Displaying 2 results from an estimated 2 matches for "assert_select_spec".
2007 Mar 09
6
AssertSelect for strings?
Hi,
Is there a way to use the have_tag matcher on a string instead of the
response body from a view? I have a helper in a method rails project
that returns an html fragment which I would like to test.
Like this:
module SomeHelper
def some_helper_method
"<p>foo</p>"
end
end
context "The SomeHelper"
helper_name :some
specify do
2007 Jul 26
5
Coding standards and whitespace
..._rails/spec/rails/dsl/ivar_proxy_spec.rb
rspec_on_rails/spec/rails/dsl/shared_behaviour_spec.rb
rspec_on_rails/spec/rails/dsl/view_spec_spec.rb
rspec_on_rails/spec/rails/extensions/action_view_base_spec.rb
rspec_on_rails/spec/rails/extensions/active_record_spec.rb
rspec_on_rails/spec/rails/matchers/assert_select_spec.rb
rspec_on_rails/spec/rails/matchers/description_generation_spec.rb
rspec_on_rails/spec/rails/matchers/redirect_to_spec.rb
rspec_on_rails/spec/rails/matchers/render_spec.rb
rspec_on_rails/spec/spec_helper.rb
rspec_on_rails/spec_resources/controllers/controller_spec_controller.rb
rspec_on_rails/spe...