From d653610c072868f5a939bd948457240a6e516695 Mon Sep 17 00:00:00 2001 From: kucaahbe Date: Thu, 31 Mar 2011 21:49:48 +0300 Subject: [PATCH] README markdown fix --- README.md | 14 +++++++------- docs/CHANGELOG.md | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 13d1788..8c7befd 100644 --- a/README.md +++ b/README.md @@ -19,19 +19,19 @@ Install add to your Gemfile(in group :test :) ): -> gem 'rspec2-rails-views-matchers' + gem 'rspec2-rails-views-matchers' Usage ----- some examples: -> rendered.should have_tag('form',:with => {:action => user_path, :method => 'post'}) do -> with_tag "input", :with => { :name => "user[email]", :type => 'email' } -> with_tag "input#special_submit", :count => 1 -> without_tag "h1", :text => 'unneeded tag' -> without_tag "p", :text => /content/i -> end + rendered.should have_tag('form',:with => {:action => user_path, :method => 'post'}) do + with_tag "input", :with => { :name => "user[email]", :type => 'email' } + with_tag "input#special_submit", :count => 1 + without_tag "h1", :text => 'unneeded tag' + without_tag "p", :text => /content/i + end More info --------- diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 82cfed2..d5dad38 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -11,7 +11,7 @@ unreleased(TODO) * add :without to have\_tag? * !make possible constructions like: -> rendered.should have(3).tags('div').with(:class => 'some-class').and_content(/some content/) + rendered.should have(3).tags('div').with(:class => 'some-class').and_content(/some content/) 0.0.5-dev (trial-trip) ---------------------- @@ -39,15 +39,15 @@ unreleased(TODO) * now following will work: -> rendered.should have_tag('div') do -> with_tag('p') -> end + rendered.should have_tag('div') do + with_tag('p') + end * tags can be specified via symbol * classes can be specified via array or string(class-names separated by spaces), so following will work: -> '
'.should have_tag('div', :with => { :class => ['two', 'one'] }) -> '
'.should have_tag('div', :with => { :class => 'two one' }) + '
'.should have_tag('div', :with => { :class => ['two', 'one'] }) + '
'.should have_tag('div', :with => { :class => 'two one' }) 0.0.2 ------