On Fri, Nov 9, 2012 at 10:59 AM, Kaspar Schiess <eule / space.ch> wrote:
> On 09.11.12 15:01, tamouse mailing lists wrote:
>>       context "unequal lengths" do
>>         it 'returns "secret and guess must be the same length"' do
>>           Marker.new('1234','').should raise_error("secret and guess
>> must be the same length")
>>         end
>>       end
>
> Try something like this:
>
>     context "unequal lengths" do
>       it 'returns "secret and guess must be the same length"' do
>         expect {
>           Marker.new('1234','')
>         }.to raise_error("secret and guess must be the same length")
>       end
>     end
>
> That should do the trick.
> k
>
>

Oh, thanks, yes! I guess I didn't read far enough in the RSpec book; I found it!