Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
added readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dnagir committed Jan 13, 2012
1 parent db45c7c commit 4808259
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4808259

Please sign in to comment.