title: How to test class methods in RSPEC
body: <p>I wrote a simple class method <code>Buy.get_days(string)</code>, and is trying to test it with different text string inputs. However I feel it is very verbose.</p>
  
  <ul>
  <li>Is there any more concise way to test the following? </li>
  <li>Is there a
  equivalent of <code>subject</code> for <strong>methods</strong> which I can just keep passing
  different parameters in and check the results? </li>
  <li>Is there a way to avoid the unnecessary description at each <code>it</code>?</li>
  </ul>
  
  <p>thanks</p>
  
  <pre><code> describe Buy do
     describe '.get_days' do
      it 'should get days' do
        Buy.get_days('Includes a 1-weeknight stay for up to 4 people')
        .should == 1
        end
      it 'should get days' do
        Buy.get_days('Includes a 1-night stay in a King Studio Room with stone fireplace')
        .should == 1
      end
      it 'should get days' do
        Buy.get_days('Includes 4 nights/5 days at the Finisterra Hotel for up to two adults and two children (staying in the same room)')
        .should == 4
      end
    end
  end
  </code></pre>