Permalink
Browse files

README markdown fix

  • Loading branch information...
1 parent cabd21e commit d653610c072868f5a939bd948457240a6e516695 kucaahbe committed Mar 31, 2011
Showing with 13 additions and 13 deletions.
  1. +7 −7 README.md
  2. +6 −6 docs/CHANGELOG.md
View
@@ -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
---------
View
@@ -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:
-> '<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 comments on commit d653610

Please sign in to comment.