Shay Friedman
2010-Apr-05 08:14 UTC
[Ironruby-core] Has someone tried to use Shoulda with IronRuby?
Hi there, I''m trying to use Shoulda to test code (not in a Rails project) and I can''t get it to work. It seems like it doesn''t convert the should statements to test methods at all. Has anyone run into this before? Thanks, Shay. -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100405/7ef321f8/attachment.html>
Shay Friedman
2010-Apr-05 13:30 UTC
[Ironruby-core] Has someone tried to use Shoulda with IronRuby?
I get the same problem with test-spec. Both frameworks enhance Test::Unit and they both don''t work... Thanks, Shay. Shay Friedman wrote:> Hi there, > > I''m trying to use Shoulda to test code (not in a Rails project) and I > can''t > get it to work. It seems like it doesn''t convert the should statements > to > test methods at all. > Has anyone run into this before? > > Thanks, > Shay.-- Posted via http://www.ruby-forum.com/.
Will Green
2010-Apr-05 14:26 UTC
[Ironruby-core] Has someone tried to use Shoulda with IronRuby?
Shoulda has a test suite. Have you run that to see what breaks? -- Will Green http://hotgazpacho.org/ On Mon, Apr 5, 2010 at 9:30 AM, Shay Friedman <lists at ruby-forum.com> wrote:> I get the same problem with test-spec. Both frameworks enhance > Test::Unit and they both don''t work... > > Thanks, > Shay. > > Shay Friedman wrote: > > Hi there, > > > > I''m trying to use Shoulda to test code (not in a Rails project) and I > > can''t > > get it to work. It seems like it doesn''t convert the should statements > > to > > test methods at all. > > Has anyone run into this before? > > > > Thanks, > > Shay. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100405/e904c1c7/attachment.html>
Shay Friedman
2010-Apr-05 14:32 UTC
[Ironruby-core] Has someone tried to use Shoulda with IronRuby?
When I run it, it doesn''t find any test cases (even though I have one)... So nothing breaks because nothing is run. Thanks, Shay. -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Mon, Apr 5, 2010 at 4:26 PM, Will Green <will at hotgazpacho.org> wrote:> Shoulda has a test suite. Have you run that to see what breaks? > -- > Will Green > http://hotgazpacho.org/ > > > > On Mon, Apr 5, 2010 at 9:30 AM, Shay Friedman <lists at ruby-forum.com>wrote: > >> I get the same problem with test-spec. Both frameworks enhance >> Test::Unit and they both don''t work... >> >> Thanks, >> Shay. >> >> Shay Friedman wrote: >> > Hi there, >> > >> > I''m trying to use Shoulda to test code (not in a Rails project) and I >> > can''t >> > get it to work. It seems like it doesn''t convert the should statements >> > to >> > test methods at all. >> > Has anyone run into this before? >> > >> > Thanks, >> > Shay. >> >> -- >> Posted via http://www.ruby-forum.com/. >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100405/97fa2c79/attachment.html>
Will Green
2010-Apr-05 16:00 UTC
[Ironruby-core] Has someone tried to use Shoulda with IronRuby?
This what I did: cd %HOME%\dev ir -S gem install rake shoulda rails sqlite3-ironruby mocha --no-rdoc --no-ri git clone http://github.com/thoughtbot/shoulda.git cd shoulda ir -S rake test It appears to pass. Results are here: http://gist.github.com/356509 -- Will Green http://hotgazpacho.org/ On Mon, Apr 5, 2010 at 10:32 AM, Shay Friedman <shay.friedman at gmail.com>wrote:> When I run it, it doesn''t find any test cases (even though I have one)... > So nothing breaks because nothing is run. > > Thanks, > Shay. > -------------------------------------------------------- > Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby > Unleashed | Sela Technology Center > Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay > > > On Mon, Apr 5, 2010 at 4:26 PM, Will Green <will at hotgazpacho.org> wrote: > >> Shoulda has a test suite. Have you run that to see what breaks? >> -- >> Will Green >> http://hotgazpacho.org/ >> >> >> >> On Mon, Apr 5, 2010 at 9:30 AM, Shay Friedman <lists at ruby-forum.com>wrote: >> >>> I get the same problem with test-spec. Both frameworks enhance >>> Test::Unit and they both don''t work... >>> >>> Thanks, >>> Shay. >>> >>> Shay Friedman wrote: >>> > Hi there, >>> > >>> > I''m trying to use Shoulda to test code (not in a Rails project) and I >>> > can''t >>> > get it to work. It seems like it doesn''t convert the should statements >>> > to >>> > test methods at all. >>> > Has anyone run into this before? >>> > >>> > Thanks, >>> > Shay. >>> >>> -- >>> Posted via http://www.ruby-forum.com/. >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100405/d7b5854d/attachment.html>
Shay Friedman
2010-Apr-06 06:54 UTC
[Ironruby-core] Has someone tried to use Shoulda with IronRuby?
This doesn''t work for me: require ''rubygems'' require ''shoulda'' class MyTest < Test::Unit::TestCase context "something" do should "be true" do assert true end end end -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Mon, Apr 5, 2010 at 6:00 PM, Will Green <will at hotgazpacho.org> wrote:> This what I did: > cd %HOME%\dev > ir -S gem install rake shoulda rails sqlite3-ironruby mocha --no-rdoc > --no-ri > git clone http://github.com/thoughtbot/shoulda.git > cd shoulda > ir -S rake test > > It appears to pass. Results are here: http://gist.github.com/356509 > > -- > Will Green > http://hotgazpacho.org/ > > > On Mon, Apr 5, 2010 at 10:32 AM, Shay Friedman <shay.friedman at gmail.com>wrote: > >> When I run it, it doesn''t find any test cases (even though I have one)... >> So nothing breaks because nothing is run. >> >> Thanks, >> Shay. >> -------------------------------------------------------- >> Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby >> Unleashed | Sela Technology Center >> Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay >> >> >> On Mon, Apr 5, 2010 at 4:26 PM, Will Green <will at hotgazpacho.org> wrote: >> >>> Shoulda has a test suite. Have you run that to see what breaks? >>> -- >>> Will Green >>> http://hotgazpacho.org/ >>> >>> >>> >>> On Mon, Apr 5, 2010 at 9:30 AM, Shay Friedman <lists at ruby-forum.com>wrote: >>> >>>> I get the same problem with test-spec. Both frameworks enhance >>>> Test::Unit and they both don''t work... >>>> >>>> Thanks, >>>> Shay. >>>> >>>> Shay Friedman wrote: >>>> > Hi there, >>>> > >>>> > I''m trying to use Shoulda to test code (not in a Rails project) and I >>>> > can''t >>>> > get it to work. It seems like it doesn''t convert the should statements >>>> > to >>>> > test methods at all. >>>> > Has anyone run into this before? >>>> > >>>> > Thanks, >>>> > Shay. >>>> >>>> -- >>>> Posted via http://www.ruby-forum.com/. >>>> _______________________________________________ >>>> Ironruby-core mailing list >>>> Ironruby-core at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>> >>> >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >>> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100406/6f874bdf/attachment.html>
Will Green
2010-Apr-06 13:16 UTC
[Ironruby-core] Has someone tried to use Shoulda with IronRuby?
I''ll have to try that later. Have you run the shoulda tests on MRI? Does it report a different number of Tests and Assertions? -- Will Green http://hotgazpacho.org/ On Tue, Apr 6, 2010 at 2:54 AM, Shay Friedman <shay.friedman at gmail.com>wrote:> This doesn''t work for me: > > require ''rubygems'' > require ''shoulda'' > > class MyTest < Test::Unit::TestCase > context "something" do > should "be true" do > assert true > end > end > end > -------------------------------------------------------- > Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby > Unleashed | Sela Technology Center > Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay > > > On Mon, Apr 5, 2010 at 6:00 PM, Will Green <will at hotgazpacho.org> wrote: > >> This what I did: >> cd %HOME%\dev >> ir -S gem install rake shoulda rails sqlite3-ironruby mocha --no-rdoc >> --no-ri >> git clone http://github.com/thoughtbot/shoulda.git >> cd shoulda >> ir -S rake test >> >> It appears to pass. Results are here: http://gist.github.com/356509 >> >> -- >> Will Green >> http://hotgazpacho.org/ >> >> >> On Mon, Apr 5, 2010 at 10:32 AM, Shay Friedman <shay.friedman at gmail.com>wrote: >> >>> When I run it, it doesn''t find any test cases (even though I have one)... >>> So nothing breaks because nothing is run. >>> >>> Thanks, >>> Shay. >>> -------------------------------------------------------- >>> Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby >>> Unleashed | Sela Technology Center >>> Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay >>> >>> >>> On Mon, Apr 5, 2010 at 4:26 PM, Will Green <will at hotgazpacho.org> wrote: >>> >>>> Shoulda has a test suite. Have you run that to see what breaks? >>>> -- >>>> Will Green >>>> http://hotgazpacho.org/ >>>> >>>> >>>> >>>> On Mon, Apr 5, 2010 at 9:30 AM, Shay Friedman <lists at ruby-forum.com>wrote: >>>> >>>>> I get the same problem with test-spec. Both frameworks enhance >>>>> Test::Unit and they both don''t work... >>>>> >>>>> Thanks, >>>>> Shay. >>>>> >>>>> Shay Friedman wrote: >>>>> > Hi there, >>>>> > >>>>> > I''m trying to use Shoulda to test code (not in a Rails project) and I >>>>> > can''t >>>>> > get it to work. It seems like it doesn''t convert the should >>>>> statements >>>>> > to >>>>> > test methods at all. >>>>> > Has anyone run into this before? >>>>> > >>>>> > Thanks, >>>>> > Shay. >>>>> >>>>> -- >>>>> Posted via http://www.ruby-forum.com/. >>>>> _______________________________________________ >>>>> Ironruby-core mailing list >>>>> Ironruby-core at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>>> >>>> >>>> >>>> _______________________________________________ >>>> Ironruby-core mailing list >>>> Ironruby-core at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>> >>>> >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >>> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100406/8d6b520c/attachment.html>
Shay Friedman
2010-Apr-06 13:36 UTC
[Ironruby-core] Has someone tried to use Shoulda with IronRuby?
No, I don''t have MRI installed on this computer (I''m loyal to my IronRuby! :-) )... If someone can try it, please do. Thanks, Shay. -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Tue, Apr 6, 2010 at 3:16 PM, Will Green <will at hotgazpacho.org> wrote:> I''ll have to try that later. > > Have you run the shoulda tests on MRI? Does it report a different number of > Tests and Assertions? > > -- > Will Green > http://hotgazpacho.org/ > > > On Tue, Apr 6, 2010 at 2:54 AM, Shay Friedman <shay.friedman at gmail.com>wrote: > >> This doesn''t work for me: >> >> require ''rubygems'' >> require ''shoulda'' >> >> class MyTest < Test::Unit::TestCase >> context "something" do >> should "be true" do >> assert true >> end >> end >> end >> -------------------------------------------------------- >> Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby >> Unleashed | Sela Technology Center >> Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay >> >> >> On Mon, Apr 5, 2010 at 6:00 PM, Will Green <will at hotgazpacho.org> wrote: >> >>> This what I did: >>> cd %HOME%\dev >>> ir -S gem install rake shoulda rails sqlite3-ironruby mocha --no-rdoc >>> --no-ri >>> git clone http://github.com/thoughtbot/shoulda.git >>> cd shoulda >>> ir -S rake test >>> >>> It appears to pass. Results are here: http://gist.github.com/356509 >>> >>> -- >>> Will Green >>> http://hotgazpacho.org/ >>> >>> >>> On Mon, Apr 5, 2010 at 10:32 AM, Shay Friedman <shay.friedman at gmail.com>wrote: >>> >>>> When I run it, it doesn''t find any test cases (even though I have >>>> one)... >>>> So nothing breaks because nothing is run. >>>> >>>> Thanks, >>>> Shay. >>>> -------------------------------------------------------- >>>> Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby >>>> Unleashed | Sela Technology Center >>>> Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay >>>> >>>> >>>> On Mon, Apr 5, 2010 at 4:26 PM, Will Green <will at hotgazpacho.org>wrote: >>>> >>>>> Shoulda has a test suite. Have you run that to see what breaks? >>>>> -- >>>>> Will Green >>>>> http://hotgazpacho.org/ >>>>> >>>>> >>>>> >>>>> On Mon, Apr 5, 2010 at 9:30 AM, Shay Friedman <lists at ruby-forum.com>wrote: >>>>> >>>>>> I get the same problem with test-spec. Both frameworks enhance >>>>>> Test::Unit and they both don''t work... >>>>>> >>>>>> Thanks, >>>>>> Shay. >>>>>> >>>>>> Shay Friedman wrote: >>>>>> > Hi there, >>>>>> > >>>>>> > I''m trying to use Shoulda to test code (not in a Rails project) and >>>>>> I >>>>>> > can''t >>>>>> > get it to work. It seems like it doesn''t convert the should >>>>>> statements >>>>>> > to >>>>>> > test methods at all. >>>>>> > Has anyone run into this before? >>>>>> > >>>>>> > Thanks, >>>>>> > Shay. >>>>>> >>>>>> -- >>>>>> Posted via http://www.ruby-forum.com/. >>>>>> _______________________________________________ >>>>>> Ironruby-core mailing list >>>>>> Ironruby-core at rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Ironruby-core mailing list >>>>> Ironruby-core at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Ironruby-core mailing list >>>> Ironruby-core at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>> >>>> >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >>> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100406/49b8d3ee/attachment-0001.html>
Shay Friedman
2010-Apr-06 15:10 UTC
[Ironruby-core] Has someone tried to use Shoulda with IronRuby?
OK, I installed MRI and it worked. So it''s a problem with IronRuby... -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Tue, Apr 6, 2010 at 3:36 PM, Shay Friedman <shay.friedman at gmail.com>wrote:> No, I don''t have MRI installed on this computer (I''m loyal to my IronRuby! > :-) )... If someone can try it, please do. > > Thanks, > Shay. > -------------------------------------------------------- > Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby > Unleashed | Sela Technology Center > Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay > > > On Tue, Apr 6, 2010 at 3:16 PM, Will Green <will at hotgazpacho.org> wrote: > >> I''ll have to try that later. >> >> Have you run the shoulda tests on MRI? Does it report a different number >> of Tests and Assertions? >> >> -- >> Will Green >> http://hotgazpacho.org/ >> >> >> On Tue, Apr 6, 2010 at 2:54 AM, Shay Friedman <shay.friedman at gmail.com>wrote: >> >>> This doesn''t work for me: >>> >>> require ''rubygems'' >>> require ''shoulda'' >>> >>> class MyTest < Test::Unit::TestCase >>> context "something" do >>> should "be true" do >>> assert true >>> end >>> end >>> end >>> -------------------------------------------------------- >>> Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby >>> Unleashed | Sela Technology Center >>> Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay >>> >>> >>> On Mon, Apr 5, 2010 at 6:00 PM, Will Green <will at hotgazpacho.org> wrote: >>> >>>> This what I did: >>>> cd %HOME%\dev >>>> ir -S gem install rake shoulda rails sqlite3-ironruby mocha --no-rdoc >>>> --no-ri >>>> git clone http://github.com/thoughtbot/shoulda.git >>>> cd shoulda >>>> ir -S rake test >>>> >>>> It appears to pass. Results are here: http://gist.github.com/356509 >>>> >>>> -- >>>> Will Green >>>> http://hotgazpacho.org/ >>>> >>>> >>>> On Mon, Apr 5, 2010 at 10:32 AM, Shay Friedman <shay.friedman at gmail.com >>>> > wrote: >>>> >>>>> When I run it, it doesn''t find any test cases (even though I have >>>>> one)... >>>>> So nothing breaks because nothing is run. >>>>> >>>>> Thanks, >>>>> Shay. >>>>> -------------------------------------------------------- >>>>> Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby >>>>> Unleashed | Sela Technology Center >>>>> Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay >>>>> >>>>> >>>>> On Mon, Apr 5, 2010 at 4:26 PM, Will Green <will at hotgazpacho.org>wrote: >>>>> >>>>>> Shoulda has a test suite. Have you run that to see what breaks? >>>>>> -- >>>>>> Will Green >>>>>> http://hotgazpacho.org/ >>>>>> >>>>>> >>>>>> >>>>>> On Mon, Apr 5, 2010 at 9:30 AM, Shay Friedman <lists at ruby-forum.com>wrote: >>>>>> >>>>>>> I get the same problem with test-spec. Both frameworks enhance >>>>>>> Test::Unit and they both don''t work... >>>>>>> >>>>>>> Thanks, >>>>>>> Shay. >>>>>>> >>>>>>> Shay Friedman wrote: >>>>>>> > Hi there, >>>>>>> > >>>>>>> > I''m trying to use Shoulda to test code (not in a Rails project) and >>>>>>> I >>>>>>> > can''t >>>>>>> > get it to work. It seems like it doesn''t convert the should >>>>>>> statements >>>>>>> > to >>>>>>> > test methods at all. >>>>>>> > Has anyone run into this before? >>>>>>> > >>>>>>> > Thanks, >>>>>>> > Shay. >>>>>>> >>>>>>> -- >>>>>>> Posted via http://www.ruby-forum.com/. >>>>>>> _______________________________________________ >>>>>>> Ironruby-core mailing list >>>>>>> Ironruby-core at rubyforge.org >>>>>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Ironruby-core mailing list >>>>>> Ironruby-core at rubyforge.org >>>>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Ironruby-core mailing list >>>>> Ironruby-core at rubyforge.org >>>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Ironruby-core mailing list >>>> Ironruby-core at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>> >>>> >>> >>> _______________________________________________ >>> Ironruby-core mailing list >>> Ironruby-core at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/ironruby-core >>> >>> >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100406/8badab92/attachment.html>
Tomas Matousek
2010-Apr-06 16:11 UTC
[Ironruby-core] Has someone tried to use Shoulda with IronRuby?
Filed a bug: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=4327. Tomas From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Shay Friedman Sent: Tuesday, April 06, 2010 8:10 AM To: ironruby-core at rubyforge.org Subject: Re: [Ironruby-core] Has someone tried to use Shoulda with IronRuby? OK, I installed MRI and it worked. So it''s a problem with IronRuby... -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Tue, Apr 6, 2010 at 3:36 PM, Shay Friedman <shay.friedman at gmail.com<mailto:shay.friedman at gmail.com>> wrote: No, I don''t have MRI installed on this computer (I''m loyal to my IronRuby! :-) )... If someone can try it, please do. Thanks, Shay. -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Tue, Apr 6, 2010 at 3:16 PM, Will Green <will at hotgazpacho.org<mailto:will at hotgazpacho.org>> wrote: I''ll have to try that later. Have you run the shoulda tests on MRI? Does it report a different number of Tests and Assertions? -- Will Green http://hotgazpacho.org/ On Tue, Apr 6, 2010 at 2:54 AM, Shay Friedman <shay.friedman at gmail.com<mailto:shay.friedman at gmail.com>> wrote: This doesn''t work for me: require ''rubygems'' require ''shoulda'' class MyTest < Test::Unit::TestCase context "something" do should "be true" do assert true end end end -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Mon, Apr 5, 2010 at 6:00 PM, Will Green <will at hotgazpacho.org<mailto:will at hotgazpacho.org>> wrote: This what I did: cd %HOME%\dev ir -S gem install rake shoulda rails sqlite3-ironruby mocha --no-rdoc --no-ri git clone http://github.com/thoughtbot/shoulda.git cd shoulda ir -S rake test It appears to pass. Results are here: http://gist.github.com/356509 -- Will Green http://hotgazpacho.org/ On Mon, Apr 5, 2010 at 10:32 AM, Shay Friedman <shay.friedman at gmail.com<mailto:shay.friedman at gmail.com>> wrote: When I run it, it doesn''t find any test cases (even though I have one)... So nothing breaks because nothing is run. Thanks, Shay. -------------------------------------------------------- Shay Friedman | Microsoft Visual C#/IronRuby MVP | Author of IronRuby Unleashed | Sela Technology Center Blog: http://IronShay.com | Twitter: http://twitter.com/ironshay On Mon, Apr 5, 2010 at 4:26 PM, Will Green <will at hotgazpacho.org<mailto:will at hotgazpacho.org>> wrote: Shoulda has a test suite. Have you run that to see what breaks? -- Will Green http://hotgazpacho.org/ On Mon, Apr 5, 2010 at 9:30 AM, Shay Friedman <lists at ruby-forum.com<mailto:lists at ruby-forum.com>> wrote: I get the same problem with test-spec. Both frameworks enhance Test::Unit and they both don''t work... Thanks, Shay. Shay Friedman wrote:> Hi there, > > I''m trying to use Shoulda to test code (not in a Rails project) and I > can''t > get it to work. It seems like it doesn''t convert the should statements > to > test methods at all. > Has anyone run into this before? > > Thanks, > Shay.-- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core at rubyforge.org<mailto:Ironruby-core at rubyforge.org> http://rubyforge.org/mailman/listinfo/ironruby-core -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20100406/2b349464/attachment-0001.html>