Skip to content

Commit

Permalink
README markdown fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kucaahbe committed Mar 31, 2011
1 parent cabd21e commit d653610
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -19,19 +19,19 @@ Install


add to your Gemfile(in group :test :) ): add to your Gemfile(in group :test :) ):


> gem 'rspec2-rails-views-matchers' gem 'rspec2-rails-views-matchers'


Usage Usage
----- -----


some examples: some examples:


> rendered.should have_tag('form',:with => {:action => user_path, :method => 'post'}) do rendered.should have_tag('form',:with => {:action => user_path, :method => 'post'}) do
> with_tag "input", :with => { :name => "user[email]", :type => 'email' } with_tag "input", :with => { :name => "user[email]", :type => 'email' }
> with_tag "input#special_submit", :count => 1 with_tag "input#special_submit", :count => 1
> without_tag "h1", :text => 'unneeded tag' without_tag "h1", :text => 'unneeded tag'
> without_tag "p", :text => /content/i without_tag "p", :text => /content/i
> end end


More info More info
--------- ---------
Expand Down
12 changes: 6 additions & 6 deletions docs/CHANGELOG.md
Expand Up @@ -11,7 +11,7 @@ unreleased(TODO)
* add :without to have\_tag? * add :without to have\_tag?
* !make possible constructions like: * !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) 0.0.5-dev (trial-trip)
---------------------- ----------------------
Expand Down Expand Up @@ -39,15 +39,15 @@ unreleased(TODO)


* now following will work: * now following will work:


> rendered.should have_tag('div') do rendered.should have_tag('div') do
> with_tag('p') with_tag('p')
> end end


* tags can be specified via symbol * tags can be specified via symbol
* classes can be specified via array or string(class-names separated by spaces), so following will work: * classes can be specified via array or string(class-names separated by spaces), so following will work:


> '<div class="one two">'.should have_tag('div', :with => { :class => ['two', 'one'] }) '<div class="one two">'.should have_tag('div', :with => { :class => ['two', 'one'] })
> '<div class="one two">'.should have_tag('div', :with => { :class => 'two one' }) '<div class="one two">'.should have_tag('div', :with => { :class => 'two one' })


0.0.2 0.0.2
------ ------
Expand Down

0 comments on commit d653610

Please sign in to comment.