duritong / trocla

A password store for password creation and retrieval
Other
76 stars 17 forks source link

Testsuite failing on Debian jessie #20

Closed michaelweiser closed 9 years ago

michaelweiser commented 9 years ago

Hi,

I'm in the process of packaging trocla for Debian. For that I needed to hack the testsuite to make it work. The patch can be found here: http://anonscm.debian.org/cgit/pkg-ruby-extras/trocla.git/tree/debian/patches/0001-testsuite.patch.

Issues are:

As can be seen from the patch I don't have any clue how to program rspec. Any hints on how to fix this properly would be greatly appreciated.

Thanks Michael

duritong commented 9 years ago

Hi Michael,

thanks a lot for the suggestions.

We can do that.

I think this should read

expect_any_instance_of(Trocla).to receive(:read_config).and_return(test_config)

I don't think this is necessary. If we don't do the call then we shouldn't expect it. We can put these into 2 different contexts.

I can do the changes if you don't want the fame for the commit.

michaelweiser commented 9 years ago

Hi!

I'm a sucker for fame and promptly gave it a whirl in https://github.com/duritong/trocla/pull/22. At least in my Debian package it does seem to work fine.

Thanks! Michael

michaelweiser commented 9 years ago

Mhmm, while it's working on my Debian box it's failing in Travis now. I'm stumped. I guess it's to do with the rspec version on Debian vs. Travis.

duritong commented 9 years ago

I merged and should have it fixed for jessie and ruby 1.8 (though that is another dep).

duritong commented 9 years ago

Let me know if anything (beside a proper release - that will follow soon) to fix/support you're packaging work.