Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added readme

  • Loading branch information...
commit 4808259f4e7ed2f72c88434e6a936129f9beba10 1 parent db45c7c
Dmytrii Nagirniak authored
Showing with 59 additions and 0 deletions.
  1. +59 −0 README.md
59 README.md
View
@@ -0,0 +1,59 @@
+
+`Its` makes testing methods with multiple arguments much easier
+==================================================
+
+Have you ever written something like this in your specs?
+
+```ruby
+it "should be US currency" do
+ subject.currency(:us).should == 'US dollar'
+end
+
+it "should be AU currency" do
+ subject.currency(:us).should == 'AU dollar'
+end
+
+it "should be UK currency" do
+ subject.currency(:uk).should == 'UK pound'
+end
+```
+
+If yes, then this what you really wanted:
+
+```ruby
+its(:currency, :us) { should == 'US dollar' }
+its(:currency, :au) { should == 'AU dollar' }
+its(:currency, :uk) { should == 'UK pound' }
+```
+
+This gems gives you this.
+
+Installation and use
+==================================================
+
+Add to your `Gemfile`:
+
+```ruby
+gem 'its'
+```
+
+Then require it somewhere:
+
+```ruby
+require 'its'
+```
+
+And you are done.
+
+
+Help
+==================================================
+
+Please report any issues here or better submit a Pull Request.
+
+
+
+License:
+==================================================
+
+MIT
Please sign in to comment.
Something went wrong with that request. Please try again.