Permalink
Browse files

rdoc=>markdown

  • Loading branch information...
1 parent c1ca3fa commit a838b22d193b5e65e52dbcc726d79b5fe4eb38d6 kucaahbe committed Feb 23, 2011
Showing with 36 additions and 32 deletions.
  1. +2 −2 .yardopts
  2. +34 −0 README.md
  3. +0 −30 README.rdoc
  4. 0 { → docs}/CHANGELOG.md
View
@@ -1,4 +1,4 @@
--no-private
---readme README.rdoc
+--readme README.md
+--files docs/CHANGELOG.md
--markup rdoc
---files CHANGELOG.md
View
@@ -0,0 +1,34 @@
+Why?
+===
+
+* you need to test some complex views
+* and you want to use rspec2
+* and assert\_select seems is something strange to you
+* [rspec-rails](http://github.com/rspec/rspec-rails) for some reason does not provide instruments for testing views
+* you need user-firendly output in error messages
+
+Install
+-------
+
+add to your Gemfile(in group :test :) ):
+
+ gem 'rspec2-rails-views-matchers'
+
+Usage
+-----
+
+some examples:
+
+ rendered.should have_tag('form',:with => {:action => user_path, :method => 'post'}) {
+ with_tag "input", :with => { :name => "user[email]", :type => 'email' }
+ with_tag "input", :with => { :name => "user[password]", :type => 'password' }
+ with_tag "input", :with => { :name => "user[password_confirmation]", :type => 'password' }
+ with_tag "input#special_submit", :count => 1
+ without_tag "h1", :text => 'unneeded tag'
+ without_tag "p", :text => /content/i
+ }
+
+More info
+---------
+
+[On RubyDoc](http://rubydoc.info/gems/rspec2-rails-views-matchers)
View
@@ -1,30 +0,0 @@
-= Why?
-
-* you need to test some complex views
-* and you want to use rspec2
-* and assert\_select seems is something strange to you
-* rspec-rails[https://github.com/rspec/rspec-rails] for some reason does not provide instruments for testing views
-* you need user-firendly output in error messages
-
-== Install
-
-add to your Gemfile(in group :test :) ):
-
- gem 'rspec2-rails-views-matchers'
-
-== Usage
-
-some examples:
-
- rendered.should have_tag('form',:with => {:action => user_path, :method => 'post'}) {
- with_tag "input", :with => { :name => "user[email]", :type => 'email' }
- with_tag "input", :with => { :name => "user[password]", :type => 'password' }
- with_tag "input", :with => { :name => "user[password_confirmation]", :type => 'password' }
- with_tag "input#special_submit", :count => 1
- without_tag "h1", :text => 'unneeded tag'
- without_tag "p", :text => /content/i
- }
-
-== More info
-
-RubyDoc[http://rubydoc.info/gems/rspec2-rails-views-matchers]
File renamed without changes.

0 comments on commit a838b22

Please sign in to comment.