similar to: Fwd: ANN: FlexMock 0.6.0 Released

Displaying 20 results from an estimated 1100 matches similar to: "Fwd: ANN: FlexMock 0.6.0 Released"

2007 Apr 13
0
ANN 0.9-beta-2
I''ve just made a new beta release available that fixes some more bugs to the translator. http://www.nabble.com/ANN:-RSpec-0.9.0-beta-1-available-for-download.-t3526973.html Additional changes since 0.9 beta-1: * Made Spec::Ui *much* easier to install. It will be released separately. Check out trunk/spec_ui/examples * HTML reports now include a syntax highlighted snippet of the source
2007 Oct 21
10
Preferred mock framework
Hi In light of the fact that RSpec mocks are going into maintenance mode in the near future, I was wondering what everyone was switching to. I liked the look of FlexMock most, so gave that a shot. However, there''s a few things that don''t work well with RSpec due to the traditional differences in the way Test::Unit cases are written vs RSpec specs. (One spec per
2008 Jan 02
2
Proxies
I really like the idea of Mock Proxies as explained in Brian Takita''s post here: http://pivots.pivotallabs.com/users/brian/blog/articles/352-introducing-rr I posted to this list eariler with an incomplete implementation of .stops_mocking in the thread "Mocking Time, delegating to original object." The Mock Proxy pattern would make this simpler.
2007 May 07
6
mock frameworks
Just curious - now that rspec (as of 0.9) let''s you choose your mock framework, how many of you are actually using (or planning to use) mocha or flexmock? Anybody planning to use any other mock framework besides rspec, mocha or flexmock? Thanks, David
2013 May 02
1
Package survey: singularities in linear regression models
Hello, I want to specify a linear regression model in which the metric outcome is predicted by two factors and their interaction. glm() computes effects for each factor level and the levels of the interaction. In the case of singularities glm() displays "NA" for the corresponding coefficients. However, svyglm() aborts with an error message. Is there a possibility that svyglm()
2007 Aug 22
1
mock framework ethics question
Hi James, Jim, and everyone else who''s listening. I''ve been investigating an interesting bug related to mocks and rails AssociationProxies. See http://rubyforge.org/tracker/?func=detail&atid=3149&aid=12547&group_id=797 for details. The crux is that if you do this (rspec mock syntax): obj.should_receive(:msg).with(mock_of_a_model) and the implementation does
2007 Nov 04
3
Returning the mock associated with an expectation.
I was reading through the FlexMock docs and noticed the expectation method .mock, which returns the original mock associated with an expectation. It looks really handy for writing nice all-in-one mocks like: mock_user = mock(''User'').expects(:first_name).returns(''Jonah'').mock So I started playing around with mocha and found I could actually already do this!
2007 Jul 10
2
Multiple calls to a class method
Hi Just wrote myself a Date.extract_from_rails_hash to handle parsing the "date(1i)", "date(2i)" parameters created in the controller params. I''ve got a method that needs to call this either once or twice, depending on the contents of the form (one section of the form is rendered conditionally). So I had two specs for the case where the second form section
2005 Mar 08
3
Chapter Numbering in Hieraki
I''m using Hieraki to do some documentation for RubyGems. So far I''m lovin'' it. But I have a question. I currently have three books on the site. It seems that the chapter numbers continue from one book to the next. For example, the first book has 7 chapters (numbered 1-7). The second book has three chapters, but they are numbered (8-10) rather than the (1-3) I
2007 Mar 23
2
Mocha 0.4.0 Hates My App
Hi all - I''ve recently made the leap from FlexMock to Mocha for mocks within my app. Today I decided to upgrade from Mocha 0.3.2 to Mocha 0.4.0. So I updated the gem, started rake and went to get some coffee. I came back 5 mins later and my units (which were clean) are now reporting 97 failures (!!!). Every failure reports a callstack like this: 18) Error:
2005 Mar 15
6
New Beta version of Rake for Rails Users ... Fix for Ruby 1.8.2 unit test bug
I have a new version of Rake that I''m (almost) ready to release. But before I make an official release, I would like some Rails folk to give it it try ... Why? Because it contains a workaround for the notorious Ruby 1.8.2 test/unit bug. Using this version of rails, it should be possible to unit test a rails app without patching the Ruby 1.8.2 test/unit library. Where to get it?
2007 Aug 31
48
Deprecating the mocking framework?
I saw in one of Dave C.''s comments to a ticket that "our current plan is to deprecate the mocking framework." I hadn''t heard anything about that, but then again I haven''t paid super close attention to the list. Are we planning on dumping the mock framework in favor of using Mocha (or any other framework one might want to plug in?). Pat
2007 Aug 25
1
rspec hangs when used with QtRuby
Hello to everyone I''m having trouble using RSpec to test code which uses QtRuby (both version 3 and 4). I noticed that, after upgrading from RSpec 1.0.5 to RSpec 1.0.8, some of my specs which used QtRuby caused spec (or rake, when used from a Rakefile) to hang indefinitly. After a bit of investigation, I found that the problem arose in the following situation: * requiring Qt4 / Qt3
2006 Nov 09
2
Hi everybody! Greetings from sunny Columbus, OH!
Hey everyone, I just wanted to drop onto the list and say hi. My name is Chad Humphries and I am a partner at a ruby and rails shop in Columbus, OH called EdgeCase. Up until two months ago we were doing all of our dev work in test:unit. I had read about RSpec before and after hearing Jim Weirich speak at the Columbus Ruby Brigade about similar ideas I decided to give it a go for a
2007 Feb 23
4
How can I spec this? The method gets passed a block...
I''m using Jim Weirich''s Builder library. The code I want to spec is xml.video do xml.id @video_id xml.views @views xml.date(@date.to_s) if @date end I''d like to mock it, rather than asserting that the XML is the right string. I can do one spec: specify "should create a video tag" do @mock_builder.should_receive(:video)
2006 Oct 25
5
Mocha, Stubba and RSpec
Hi, I''ve been reading with interest the threads trying to integrate Mocha and Stubba with RSpec. So far, I''ve made the two changes in spec_helper.rb suggested, but discovered another one that neither of the archives mentions: If you use traditional mocking: object = mock or the stub shortcut : object = stub(:method => :result), you run into namespace conflicts with
2008 Oct 02
1
acts_as_taggable_on environment issues
Like most people, I''ve got two machines: one for development and one for production. I''ve done everything I can to make sure the ruby/rails environments are the same, but of course they''re not identical (I''ll get into that in a moment). The error that I''m getting happens when I call a method in a background task controller on the production machine; I
2007 Aug 07
0
Object equality with a DSL
How would you spec a DSL which descends from Jim Weirich''s Blank Slate? I''m asking this question because I have written a DSL, and would like to have the DSL class descend from BlankSlate so that methods like == are not available in the DSL itself (in production), but only while Testing. Does any one have any insight on this? I can provide code samples if anyone would
2006 Aug 17
0
[ADV] The Rails Edge
Hi Folks, Apologies in advance for the blatant advertisement. Just thought you might be interested in our new regional Ruby/Rails conference series. The first will take place on November 16-18 in Denver, CO. http://therailsedge.com -------------------- What''s It About? -------------------- You all know that Rails and Ruby are on the move. Every month brings new tools, new
2006 Jul 09
0
RailsConf Europe, Sept. 14-15: don''t put it off!
Hi everyone -- In the excitement of the Chicago RailsConf and other recent events, don''t forget the excitement of RailsConf Europe! You''ve heard of it, but it seems kind of shadowy compared to the "big" events? Here''s the news: >>>>>>>>>>>>>>>> It IS a big event!