Re: [rspec-users] [rspec-rails] how to test module behavior once and then confirm that controllers implement it?

2011-01-14 Thread Nick
Hey Lille. > Specifically, what is the recommended structure for the test of the > module filter; > How about creating a shared example group, and referencing that? http://blog.davidchelimsky.net/2010/11/07/specifying-mixins-with-shared-example-groups-in-rspec-2/ > next, how can I confirm that

[rspec-users] [rspec-rails] how to test module behavior once and then confirm that controllers implement it?

2011-01-14 Thread Lille
Hi, I'm using rspec-rails (1.3.2), and wondering how to save myself the trouble of testing filters for ActionControllers when those filters call methods included from modules. Specifically, what is the recommended structure for the test of the module filter; next, how can I confirm that the contr

Re: [rspec-users] found some inconsistently behavior on its method.

2011-01-14 Thread Nori Hamamoto
Hi David, I've sent a patch for this problem via github. Please check it out. Thank you, Nori On Fri, Jan 14, 2011 at 12:18 PM, Nori Hamamoto wrote: > Sounds good!! > > Nori > > On Fri, Jan 14, 2011 at 10:57 AM, David Chelimsky wrote: > >> On Jan 14, 2011, at 7:29 AM, Nori Hamamoto wrote: >>

Re: [rspec-users] rspec 2.4 incorrect time reported

2011-01-14 Thread Michael Guterl
On Fri, Jan 14, 2011 at 11:05 AM, David Chelimsky wrote: > On Jan 14, 2011, at 9:56 AM, Michael Guterl wrote: > >> I keep seeing strange run times for our specs: >> >> Finished in -348317500.25314 seconds >> >> Any thoughts are much appreciated. > > Are you stubbing Time.now anywhere? Yes we are,

[rspec-users] Rails 3 / RSpec 2 use_transactional_fixtures and after_commit

2011-01-14 Thread Michael Guterl
We're migrating a Rails 2.3.x application to Rails 3 and RSpec 2.x. In Rails 2.3.x we were using https://github.com/freelancing-god/after_commit to provide after_commit functionality (now provided by Rails 3). The plugin version of after_commit came with some helpers to make testing with `use_tran

Re: [rspec-users] rspec 2.4 incorrect time reported

2011-01-14 Thread David Chelimsky
On Jan 14, 2011, at 9:56 AM, Michael Guterl wrote: > I keep seeing strange run times for our specs: > > Finished in -348317500.25314 seconds > > Any thoughts are much appreciated. Are you stubbing Time.now anywhere? ___ rspec-users mailing list rspec-

Re: [rspec-users] autospec on rails keep rerunning on failed case, and never stop.

2011-01-14 Thread Nori Hamamoto
Additionally, this problem doesn't happen when I use autospec on simple ruby rb file, but only happens with rails. On Fri, Jan 14, 2011 at 12:29 PM, Nori Hamamoto wrote: > Hi there, > > I met a problem when I'm using RSpec(1.3.0) on rails. > I installed rspec(1.3.1) and rspec-rails(1.3.3) instal

[rspec-users] autospec on rails keep rerunning on failed case, and never stop.

2011-01-14 Thread Nori Hamamoto
Hi there, I met a problem when I'm using RSpec(1.3.0) on rails. I installed rspec(1.3.1) and rspec-rails(1.3.3) installed through rails script/plugin install from github. I run autospec at $RAILS_ROOT, and if the test goes successful, it's no problem, but once I get failed case, it keep running t

Re: [rspec-users] found some inconsistently behavior on its method.

2011-01-14 Thread Nori Hamamoto
Sounds good!! Nori On Fri, Jan 14, 2011 at 10:57 AM, David Chelimsky wrote: > On Jan 14, 2011, at 7:29 AM, Nori Hamamoto wrote: > > I said I'm using the newest version on the repository, but I mean that the > newest version of rspec1's repository. > I didn't try it on rspec2 because according t

[rspec-users] rspec 2.4 incorrect time reported

2011-01-14 Thread Michael Guterl
I keep seeing strange run times for our specs: Finished in -348317500.25314 seconds Any thoughts are much appreciated. Best, Michael Guterl ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] found some inconsistently behavior on its method.

2011-01-14 Thread David Chelimsky
On Jan 14, 2011, at 7:29 AM, Nori Hamamoto wrote: > I said I'm using the newest version on the repository, but I mean that the > newest version of rspec1's repository. > I didn't try it on rspec2 because according to rspec2's git repository, it > doesn't support rails 2 and I'm using rails 2. >

Re: [rspec-users] found some inconsistently behavior on its method.

2011-01-14 Thread Nori Hamamoto
I said I'm using the newest version on the repository, but I mean that the newest version of rspec1's repository. I didn't try it on rspec2 because according to rspec2's git repository, it doesn't support rails 2 and I'm using rails 2. Sorry about the lack of the information in my report. Cheers,

Re: [rspec-users] found some inconsistently behavior on its method.

2011-01-14 Thread David Chelimsky
On Jan 14, 2011, at 12:19 AM, Nori Hamamoto wrote: > Hi there, > > I've just started using rspec and rspec-rails (both are the newest version on > git repository). > I met some inconsistently behavior on it method and its method. > The following is the way to reproduce it: > > command line: >