The message created by RSpec based on the expectation in the it block is:

Puppet::Network::AuthStore::Declaration when the pattern is a hostname
but not a FQDN
- should not raise Exception

But yes, it could be given a custom message if this is insufficient.

On Wed, Oct 14, 2009 at 4:22 PM, Luke Kanies <[email protected]> wrote:
>
> On Oct 14, 2009, at 4:06 PM, Rein Henrichs wrote:
>
>>
>>
>> Signed-off-by: Rein Henrichs <[email protected]>
>> ---
>> spec/unit/network/authstore.rb |    8 ++++++++
>> 1 files changed, 8 insertions(+), 0 deletions(-)
>>
>> diff --git a/spec/unit/network/authstore.rb b/spec/unit/network/
>> authstore.rb
>> index 55b2c7b..fda2575 100644
>> --- a/spec/unit/network/authstore.rb
>> +++ b/spec/unit/network/authstore.rb
>> @@ -124,6 +124,14 @@ describe
>> Puppet::Network::AuthStore::Declaration do
>>         end
>>     end
>>
>> +    describe "when the pattern is a hostname but not a FQDN" do
>> +        it do
>
> Shouldn't there be a message here?
>
>> +            lambda {
>> +
>> Puppet::Network::AuthStore::Declaration.new(:allow,"host-name")
>> +            }.should_not raise_error
>> +        end
>> +    end
>> +
>>     describe "when comparing patterns" do
>>         before :each do
>>             @ip        =
>> Puppet::Network::AuthStore::Declaration.new(:allow,'127.0.0.1')
>> --
>> 1.6.4.2
>>
>>
>> >
>
>
> --
> Think twice before you speak, and then you may be able to say
> something more insulting than if you spoke right out at
> once. -- Evan Esar
> ---------------------------------------------------------------------
> Luke Kanies | http://reductivelabs.com | http://madstop.com
>
>
> >
>



-- 
Rein Henrichs
http://reductivelabs.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to