+1 On Dec 20, 2009, at 7:32 PM, Jesse Wolfe wrote:
> Some tests in this file were leaking a global setting, some other > tests > depended on those changes, and some tests were incompatible with that > setting. > > Signed-off-by: Jesse Wolfe <[email protected]> > --- > spec/unit/provider/ssh_authorized_key/parsed.rb | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/spec/unit/provider/ssh_authorized_key/parsed.rb b/spec/ > unit/provider/ssh_authorized_key/parsed.rb > index 49abc13..9abcda5 100755 > --- a/spec/unit/provider/ssh_authorized_key/parsed.rb > +++ b/spec/unit/provider/ssh_authorized_key/parsed.rb > @@ -33,7 +33,7 @@ describe provider_class do > end > > def genkey(key) > - @provider.filetype = :ram > + > @provider > .stubs(:filetype).returns(Puppet::Util::FileType::FileTypeRam) > file = @provider.default_target > > key.flush > @@ -90,7 +90,9 @@ describe provider_class do > before :each do > @resource = stub("resource", :name => "foo") > @resource.stubs(:[]).returns "foo" > + > @provider = provider_class.new(@resource) > + > provider_class > .stubs(:filetype).returns(Puppet::Util::FileType::FileTypeRam) > end > > describe "when flushing" do > -- > 1.6.5 > > -- > > 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 > . > > -- The remarkable thing about Shakespeare is that he really is very good, in spite of all the people who say he is very good. -- Robert Graves --------------------------------------------------------------------- Luke Kanies -|- http://reductivelabs.com -|- +1(615)594-8199 -- 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.
