[rspec-users] DatabaseCleaner and EmailSpec are looking for new maintainers

2013-09-11 Thread Ben Mabey
. For more details see this blog post: http://benmabey.com/2013/09/11/databasecleaner-and-email-spec-need-new-homes.html Thanks! -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] regular expression hang ruby.exe

2013-05-08 Thread Ben Lovell
manager. Any ides how I can handle this? time_on_site.should match(/^00:[0-5][0-9]$/) Best regards Mattias Hey Mattias, Very peculiar. Could you produce the smallest possible script to reproduce this? Thanks, Ben ___ rspec-users mailing list

Re: [rspec-users] Irelan NEEDS Ruby on Rails Developers

2012-12-13 Thread Ben Lovell
with you about an opportunity with an industry leading Irish technology company.*Generous salary with excellent benefits package and bonus included* Please contact me for more information: kenneth.orei...@sabeo.com This is a list for rspec issues, not recruiter spam. Thanks. Ben

Re: [rspec-users] unexpected should_receive behaviour

2012-10-09 Thread Ben Lovell
. Could you post a gist of the spec and the controller action? Regards, Ben I've opened a question on StackOverflow too: http://stackoverflow.com/questions/12799617/unexpected-rspec-should-receive-behaviour many thanks, enricostn -- · Enrico Stano · · twitter @enricostano · skype

Re: [rspec-users] unexpected should_receive behaviour

2012-10-09 Thread Ben Lovell
On 9 October 2012 13:56, enrico stano enrico...@gmail.com wrote: Hi Ben, you could find more info browsing this Gist https://gist.github.com/3848429#file_user_controller_spec.rb I've added it to my StackOverflow question too. Thank you for your time! ennrico CanCan is finding your

Re: [rspec-users] unexpected should_receive behaviour

2012-10-09 Thread Ben Lovell
what's happening thank you! You can set the number of times an expectation should be met or the order in which they're executed: https://www.relishapp.com/rspec/rspec-mocks/docs/message-expectations/receive-counts Regards, Ben 2012/10/9 Andy Lindeman alinde...@gmail.com: On Tue, Oct 9

Re: [rspec-users] i cannot seem to use at_least

2012-09-26 Thread Ben Lovell
/rspec-mocks/issues/133 -- best, deepak w: https://gist.github.com/deepak Did you read the discussion from the issue? https://github.com/rspec/rspec-mocks/issues/133 It makes a strong case as to why at_least(0) makes no sense. Cheers, Ben ___ rspec

[rspec-users] Newbie testing questions

2012-06-01 Thread Ben Densmore
what specifically I should be testing. Any guidance would be greatly appreicated. Thanks, Ben -- Posted via http://www.ruby-forum.com/. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] tests using factorygirl

2012-02-29 Thread Ben Atkin
a single Location, and since it's run within a block it's delayed until the spec is run, rather than at load time.) Ben On Wed, Feb 29, 2012 at 10:19 PM, S Ahmed sahmed1...@gmail.com wrote: I'm trying to use factory for a test case, but the model I am creating via the factory depends

Re: [rspec-users] issues when trying to select an option in a drop down list

2012-02-29 Thread Ben Atkin
binding.pry above that line, and then run it, and then poke around in the repl and see if you've got the right context. You did make the request to get that page, right? Ben On Wed, Feb 29, 2012 at 10:04 PM, S Ahmed sahmed1...@gmail.com wrote: My html looks like: select id=account_car_type name

Re: [rspec-users] Comparing files

2010-12-11 Thread Ben Mabey
On 12/11/10 2:03 AM, Matt Wynne wrote: On 10 Dec 2010, at 16:21, Ben Mabey wrote: On 12/10/10 8:56 AM, Matt Wynne wrote: Hello folks, I'm writing some tests for file upload code. The files are binary, images mostly. I'm futzing around a bit, trying to figure out how to assert

Re: [rspec-users] Comparing files

2010-12-10 Thread Ben Lovell
Cyclic redundancy check (crc) Sent from my iPhone On 10 Dec 2010, at 15:56, Matt Wynne m...@mattwynne.net wrote: Hello folks, I'm writing some tests for file upload code. The files are binary, images mostly. I'm futzing around a bit, trying to figure out how to assert that the uploaded

Re: [rspec-users] Comparing files

2010-12-10 Thread Ben Mabey
. It won't tell you what is different.. just that they aren't identical which is what I think you want. So... something like: Digest::MD5.hexdigest(File.read(uploaded_file_path)).should == Digest::MD5.hexdigest(File.read(path_to_expected_file)) -Ben

Re: [rspec-users] Testing initialize methods and chained methods

2010-10-20 Thread Oscar Del Ben
Thanks for all the replies and the help. On Tue, Oct 19, 2010 at 9:08 PM, David Chelimsky dchelim...@gmail.comwrote: On Oct 19, 2010, at 2:04 PM, Pat Maddox wrote: On Oct 19, 2010, at 12:56 AM, Oscar Del Ben wrote: I'm having some troubles understanding how to test a couple of things

[rspec-users] Testing initialize methods and chained methods

2010-10-19 Thread Oscar Del Ben
I'm having some troubles understanding how to test a couple of things. Usually, if I'm having trouble testing something, it means that my design could probably be improved or changed, but in these cases I think I'm doing the right thing. Here's the first scenario: class Foo def initialize

Re: [rspec-users] Where do a set the description on a should satisfy.

2010-09-27 Thread Ben Mabey
' at the top of the spec like so: http://github.com/rspec/rspec-core/blob/master/spec/rspec/core_spec.rb#L1 By following this convention you will only have to specify the spec on the command line. HTH, Ben ___ rspec-users mailing list rspec-users

Re: [rspec-users] How do I test my Module?

2010-09-21 Thread Ben Mabey
* 2 end end require 'ostruct' describe MyModule do def new_object(hash) OpenStruct.new(hash).extend(MyModule) end describe #double do it doubles the num var do new_object(:num = 2).double.should == 4 end end end HTH, Ben

Re: [rspec-users] Re-using Rspec Matchers

2010-09-08 Thread Ben Mabey
think it should work.) -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] (no subject)

2010-06-07 Thread Ben Butler-Cole
it would take some significant changes to support this; but it doesn't seem to be a terribly esoteric use case. Thanks for any suggestions. -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] mock assertions on block parameters

2010-06-07 Thread Ben Butler-Cole
? If it's the former, you can test it by creating a test double for the block, and asserting that it's passed to the collaborator The later. The block gets created by the code under test, so I can't create a double for it. -Ben ___ rspec-users mailing

Re: [rspec-users] Mocking and specing command line (cli) execution, file operations etc. ?

2010-06-07 Thread Ben Mabey
if you want to see an in-depth example. In general, for simple CLIs aruba is probably the way to go though. This example group is probably best if you want/need to use mocking more to avoid expensive operations. HTH, Ben ___ rspec-users mailing

[rspec-users] [Code Style] Is there a more 'rspec' way for me to write this test?

2010-05-28 Thread Ben Buckley
(pulled into a separate class because I couldn't work out how to test it). describe TeamCalendar do before do @mock_website = stub(the website).as_null_object @builder = TeamBuilder.new(@mock_website).member(Ben) @hronline = TeamCalendar.new(@mock_website,Ben) end it should

[rspec-users] Failing test despite expected and got being identical ...

2010-05-06 Thread ben rooney
Slightly flummoxed on this one. Spec::Mocks::MockExpectationError in 'ChartEventsController handling GET /chart_events should find all chart_events given a value' expected: ([:all, {:conditions=[value LIKE ?, %chart_event%]}]) got: ([:all, {:conditions=[value LIKE ?, %chart_event%]}])

[rspec-users] Failing test despite expected and got being identical ...

2010-05-06 Thread ben rooney
being sorted. Many thanks Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Running code on error

2010-04-30 Thread Ben Mabey
for inspection. If that doesn't suit your needs you will have to decorate 'it' on ExampleGroup. -Ben On Apr 29, 7:31 pm, Pat Maddox mailingli...@patmaddox.com wrote: Could you share a bit more about what you are actually trying to achieve? On Apr 28, 2010, at 1:51 PM, Ryan S wrote

Re: [rspec-users] File creation

2010-04-28 Thread ben rooney
Rick Many thanks - I think the idea of breaking out the actual file writing from the code generation is a great one. I don't need to test File I/O - I think I can assume that that works just fine... Many thanks for your help Ben ___ rspec-users

Re: [rspec-users] Rack::Test + cookies + rspec

2010-04-23 Thread Ben Prew
Ben Lovell wrote: On 16 April 2010 15:59, Ben Lovell benjamin.lov...@gmail.com wrote: Try: post 'whatever', {}, {'rack.session' = {:something='value'}} To put things through the session with rack test/sinatra. Sent from my iPhone Hmm, hold up, that isn't what you asked for :) You

[rspec-users] File creation

2010-04-22 Thread ben rooney
to see if I am in the Test environment and generate a different file, but putting code into my model to pass tests doesn't seem a very, well, sensible thing to do. Anyone been there, done that? Ben ___ rspec-users mailing list rspec-users@rubyforge.org http

Re: [rspec-users] Rack::Test + cookies + rspec

2010-04-16 Thread Ben Lovell
Try: post 'whatever', {}, {'rack.session' = {:something='value'}} To put things through the session with rack test/sinatra. Sent from my iPhone On 16 Apr 2010, at 15:20, David Chelimsky dchelim...@gmail.com wrote: On Apr 16, 2010, at 8:49 AM, Nicholas Wieland wrote: On Apr 16, 2010, at

Re: [rspec-users] Rack::Test + cookies + rspec

2010-04-16 Thread Ben Lovell
On 16 April 2010 15:59, Ben Lovell benjamin.lov...@gmail.com wrote: Try: post 'whatever', {}, {'rack.session' = {:something='value'}} To put things through the session with rack test/sinatra. Sent from my iPhone Hmm, hold up, that isn't what you asked for :) You have to remember

[rspec-users] Scaffold views spec failing

2010-04-08 Thread ben rooney
= true, :id = 1) ) ] And lo - it all works! Hurrah. So if anyone else is as much as an idiot as me (unlikely, but you never know) that is what you do. Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org

[rspec-users] Scaffold views spec failing

2010-04-06 Thread ben rooney
/spec:5 ) Any help v much appreciated ... Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] How to stub a has_many relationship in Rails 2.3.5

2010-03-24 Thread Ben Fyvie
: #{reflection.primary_key_name} = \#{record.#{reflection.name}.send(:owner_quoted_id)} Any help would be greatly appreciated! Ben Fyvie ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] How to test an app with multiple databases?

2010-03-08 Thread Ben Mabey
. If it does I could add support to DatabaseCleaner so you can select which AR DB connections you want to clean. HTH, Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] adding to the callbacks that rspec-rails adds

2010-02-16 Thread Ben Fyvie
the app fails because it doesn't load test unit. So my question is where can I put this code so that it will always be included when running rspec? Thanks! Ben Fyvie ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org

Re: [rspec-users] testing named_scope

2010-01-23 Thread Ben Mabey
very cool with a lot of potential. Just like Ioke's docs it embeds the specs as part of the documentation with the option to view the source. Here is the example from the projects home page: http://lsegal.github.com/yard-spec-plugin/String.html#pig_latin-instance_method -Ben

[rspec-users] running specs on JRuby w/nailgun

2010-01-21 Thread Ben Mabey
). Has anyone solved this problem to get lightning fast specs on JRuby just like we can with MRI and Spork? Thanks, Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Cucumber generator

2010-01-12 Thread Ben Lovell
Try gem install cucumber-rails In a recent release the generators were split from the main project. Sent from my iPhone On 13 Jan 2010, at 06:38, Onno van der Straaten onno.van.der.straa...@gmail.com wrote: Hi, I'm new to RSpec and Cucumber and I'm following the RSpec book. I have

Re: [rspec-users] Problem with should_not when passing a multipleargs to a matcher

2010-01-07 Thread Ben Fyvie
are suggesting, I think this would be great! Not only does it add the functionality we are looking for but the method names are self documenting and much easier to understand what functionality to expect from each one. Ben Fyvie _ From: rspec-users-boun...@rubyforge.org [mailto:rspec

[rspec-users] Problem with should_not when passing a multiple args to a matcher

2010-01-06 Thread Ben Fyvie
in advance! Ben Fyvie ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Spec helper configuration problem

2009-11-27 Thread Ben Mabey
) + /support/**/*.rb].sort.each {|f| require f} HTH, Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] spec_helper getting reloaded after specs run under Textmate/Spork

2009-11-23 Thread Ben Mabey
have any initial thoughts about why this would be happening. Hmm.. I can't think of why this would happen either. Tim Harper is a textmate user so if you post this question to the spork mailing list he could probably help you. (Spork ML: http://groups.google.com/group/sporkgem) -Ben

Re: [rspec-users] testing Rake tasks with FakeFS

2009-11-01 Thread Ben Mabey
Jake Benilov wrote: Hello Ben, Hi Jake, I hope you don't mind but I am copying this response to the rspec-users list in case any one else is able to shed more light on it. I have a bit of a newbie question regarding fakefs; I want to test Rake tasks using fakefs and rspec

Re: [rspec-users] [BDD] View specs and cucumber -- duplication of effort?

2009-10-28 Thread Ben Mabey
. If you are finding you want to write Then I should see.. And I should see.. And I should see., etc that is an indication that a view spec *may* be helpful in that situation. HTH, Ben ___ rspec-users mailing list rspec-users@rubyforge.org http

Re: [rspec-users] Can't figure you why I am getting deliver_from == Nil Using EmailSpec

2009-10-22 Thread Ben Mabey
matches?(email) @email = email @actual_sender = (email.from || []).first @actual_sender.eql? @expected_email_addresses end On the email you are testing can you call 'from' on it and see what it returns? -Ben ___ rspec-users

Re: [rspec-users] controller code doesn't seem to be called within rspec test

2009-10-21 Thread Ben Lovell
6. Cheers, Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Mailing list for BDD?

2009-09-27 Thread Ben Mabey
Ed Howland wrote: Sorry for the cross post, but does anyone know of a list dedicated to just BDD? Seems like all the discussion is happening over on rspec-users, some on the tdd list. My interest is in the abstract concept of behavior driven design/development, as expressed by Dave Astels and

Re: [rspec-users] Problems while loading 'spec/stubs/cucumber'

2009-09-15 Thread Ben Mabey
. So, you could say: require 'rubygems' require 'spec' require 'spec/expectations' 42.should == 42 HTH, Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] arbitrary handling of received messages in mocks

2009-08-25 Thread Ben Mabey
end end -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] running rake spec:remote

2009-08-25 Thread Ben Mabey
in that file. HTH, Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] [Cucumber] testing emails with celerity - the best solution

2009-08-23 Thread Ben Mabey
/liangzan/email-spec/tree/master I plan on merging the above into email spec soon. Even if you are not using email-spec then the above libs would be helpful. -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman

Re: [rspec-users] undefined method 'mock'

2009-08-23 Thread Ben Mabey
will be appreciated. Please post the failing spec and your spec_helper.rb. Without those it is hard for us to diagnose the problem. -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Sharing code and still keeping a only commit if all is green discipline

2009-08-20 Thread Ben Mabey
additional rake tasks to help with this: rake cucumber # Alias for cucumber:ok rake cucumber:all # Run all features rake cucumber:ok # Run features that should pass rake cucumber:wip # Run features that are being worked on -Ben ___ rspec-users

Re: [rspec-users] specify a port for DRB

2009-08-12 Thread Ben Mabey
the the options already have a convention. For the sake of consistently I would rather see them be specified using options. Does anyone else have a preference or argument for using env vars? BTW, thanks for doing this. :) -Ben ___ rspec-users mailing list

Re: [rspec-users] [cucumber] table.hashes

2009-07-28 Thread Ben Mabey
://groups.google.com/group/cukes Thanks, Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] On Mocks vs Stubs in the context of rSpec

2009-07-25 Thread Ben Mabey
Rick DeNatale wrote: On Thu, Jul 23, 2009 at 8:41 PM, Ben Mabeyb...@benmabey.com wrote: You can, IMO, use a mock like a stub and a stub like a mock.. Take this for example: describe #some_method do it delegates to some_obejct do some_object = stub('some object', :some_method = foo

Re: [rspec-users] How detailed should error scenarios be?

2009-07-24 Thread Ben Mabey
tests. (And even then you can never test everything...) Thats my current take on things at least... HTH, Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] On Mocks vs Stubs in the context of rSpec

2009-07-24 Thread Ben Mabey
Marcelo de Moraes Serpa wrote: Thanks David and Ben for the comprehensive replies! I really appreciate it :) These wikipedia articles helped me to understand on the more conceptual level: http://en.wikipedia.org/wiki/Method_stub http://en.wikipedia.org/wiki/Mock_object So, if I understand

Re: [rspec-users] How detailed should error scenarios be?

2009-07-24 Thread Ben Mabey
Ben Mabey wrote: Nathan Benes wrote: I'm fairly new to cucumber and rspec but so far am falling in love with both. I've read up on several different articles concerning these testing tools including the 'beta' BDD rspec/cucumber book. I saw this thread here: http://www.ruby-forum.com/topic

Re: [rspec-users] On Mocks vs Stubs in the context of rSpec

2009-07-23 Thread Ben Mabey
), however that is aliased from #stub! which is used most often. This is all from memory so I could be wrong but that is the general gist of it. HTH, -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] My very fist spec file (not sure what's wrong..)

2009-07-21 Thread Ben Mabey
that it is *the* way of doing things. This is what the book recommends IIRC so you are understanding it. -Ben Thanks Chris On Jul 21, 9:25 am, internetchris ch...@silhouettesolutions.net wrote: Ben that worked perfectly I appreciate the help. Stephen, I appreciate the encouragement, it feels daunting

Re: [rspec-users] My very fist spec file (not sure what's wrong..)

2009-07-20 Thread Ben Mabey
that the controller can set it to @account and save it. To see some examples of RSpec controller specs you can use a generator to general rspec scaffolding... like so: ./script/generate rspec_scaffold Account HTH, Ben ___ rspec-users mailing list

Re: [rspec-users] [ANN] rspec 1.2.8 Released

2009-07-16 Thread Ben Mabey
this feature check out the examples in this cucumber feature for it: http://github.com/dchelimsky/rspec/blob/1420b6f02f5fe2ba97286d895b8215617f80d4a6/features/matchers/define_matcher_with_user_customizable_message.feature Thanks for the release. -Ben * result.should be_nil, expected result

Re: [rspec-users] ZenTest, RSpec and Ruby 1.9.1

2009-07-12 Thread Ben Mabey
, are you using the autospec command that comes with RSpec? -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] loading custom matchers into cucumber

2009-07-08 Thread Ben Mabey
work. -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Noob syntax questions regarding rspec book...

2009-07-07 Thread Ben Mabey
is: http://rubular.com/ -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Test doubles: expect x and don't care about anything else

2009-06-29 Thread Ben Mabey
. Meaning, assuming the stub is in the before block, you can change the expectation to: Comment.should_receive(:find).with(123) # this will still return @comment -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org

Re: [rspec-users] Testing with activerecord at ThoughtWorks (Stubbing vs real DB)

2009-06-28 Thread Ben Mabey
definition) -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Integrate or isolate views?

2009-06-28 Thread Ben Mabey
integration test (or Cucumber scenario). Since the majority of views are very simple then verifying them just in Cucumber is good enough, IMO. -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Integrate or isolate views?

2009-06-28 Thread Ben Mabey
Jesse Crockett wrote: Ben Mabey wrote: On Jun 28, 2009, at 8:32 AM, Jesse Crockett wrote: When I use integrate_views, can I write view spec in what would otherwise be isolated controller spec? Correct, by default RSpec's controller specs will not render the view. This allows

Re: [rspec-users] [Cucumber][Webrat] Using LinkLocator in cucumber step definitions

2009-06-23 Thread Ben Lovell
') Note this is gmail code and untested :) Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Where to put macros

2009-06-22 Thread Ben Mabey
do this in spec/spec_helper.rb: Dir[File.dirname(__FILE__) + /support/**/*.rb].each {|f| require f} What would folks think if that was included in the generated spec_helper in spec-rails? Just as I said there was no written convention... :) I like it. +1 -Ben

Re: [rspec-users] The problem with learning RSpec

2009-06-18 Thread Ben Mabey
to soon is how to test code that runs as a BackgrounDRb worker. I came up with solutions for all of this (except for the BDRb stuff), but I'm not entirely sure of their quality. They certainly feel hackish, but I can't put my finger on why. I suspect David Chelimsky or Ben Mabey or Aslak or any

Re: [rspec-users] shared examples sharing methods

2009-06-17 Thread Ben Mabey
can use instance variables to pass values to the shared examples, though, right? At your own risk, yes, of course :) If you do go down that route, I recommend method calls instead of instance variables. That way it will yell out you when you forget to define one. :) -Ben cheers

Re: [rspec-users] shared examples sharing methods

2009-06-17 Thread Ben Mabey
the value of such specs... but that is the macro approach. -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Spork and Merb and rSpec

2009-06-15 Thread Ben Mabey
suggest filing a bug on their tracker, wherever it may lie. Scott Spork uses github issues. Also, FYI, spork has it's own mailing list: http://groups.google.com/group/sporkgem -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http

Re: [rspec-users] The problem with learning RSpec

2009-06-13 Thread Ben Mabey
Stephen Eley wrote: Ben and Rick, Thanks very much to both of you for the encouraging responses. Your reply, Ben, came just in time as I was starting to wonder if I had made a complete and irrevocable ass of myself. On Fri, Jun 12, 2009 at 10:36 AM, Ben Mabeyb...@benmabey.com wrote

Re: [rspec-users] The problem with learning RSpec

2009-06-12 Thread Ben Mabey
gotta run, but I those were some of the thoughts I had. Thanks, Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Given/When/Then blocks on Cucumber

2009-06-05 Thread Ben Mabey
Whatever -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Given/When/Then blocks on Cucumber

2009-06-05 Thread Ben Mabey
posts: http://groups.google.com/group/cukes -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] Disabling cucumber for autotest

2009-05-28 Thread Ben Johnson
Hi, For some reason, no matter what, my entire cucumber suite is ran after every auto test. Is there a way to make auto test ignore cucumber all together? Thanks for your help. Ben Johnson Binary Logic W: www.binarylogic.com E: bjohn...@binarylogic.com 1430 Broadway 7th Floor - NECO

Re: [rspec-users] Disabling cucumber for autotest

2009-05-28 Thread Ben Mabey
Ben Johnson wrote: Hi, For some reason, no matter what, my entire cucumber suite is ran after every auto test. Is there a way to make auto test ignore cucumber all together? Thanks for your help. Hi Ben, The default behaviour is for it to not run the features at all. In fact Cucumber

Re: [rspec-users] Disabling cucumber for autotest

2009-05-28 Thread Ben Lovell
the same behaviour with autotest-mac. My scenarios won't run unless I specify AUTOFEATURE=true first. Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] Cucmber Step to insert Test Data into Database

2009-05-27 Thread Ben Mabey
. Smita. Hi Smita. Please use the new Cucumber google group for new threads about Cucumber: http://groups.google.com/group/cukes When was the decision made to split off the cucumber group? Scott http://rubyforge.org/pipermail/rspec-users/2009-May/014502.html -Ben

Re: [rspec-users] spec_server errors when reloading fixture replacement pl

2009-05-26 Thread Ben Johnson
Mark Wilden wrote: On Sun, May 24, 2009 at 10:17 PM, Ben Mabey b...@benmabey.com wrote: Spork seems to have the same problem that I have with spec_server: it doesn't reload classes I change. So if I'm doing TDD between a model and its spec, it doesn't help. ///ark I have the same

Re: [rspec-users] spec_server errors when reloading fixture replacement pl

2009-05-26 Thread Ben Mabey
Scott Taylor wrote: On May 26, 2009, at 1:22 PM, Mark Wilden wrote: On Sun, May 24, 2009 at 10:17 PM, Ben Mabey b...@benmabey.com mailto:b...@benmabey.com wrote: Well, so Spork was really created with testing in mind. It is more general purpose than spec_server though. You can

Re: [rspec-users] spec_server errors when reloading fixture replacement pl

2009-05-26 Thread Ben Mabey
Scott Taylor wrote: On May 26, 2009, at 2:31 PM, Ben Mabey wrote: Scott Taylor wrote: On May 26, 2009, at 1:22 PM, Mark Wilden wrote: On Sun, May 24, 2009 at 10:17 PM, Ben Mabey b...@benmabey.com mailto:b...@benmabey.com wrote: Well, so Spork was really created with testing in mind

Re: [rspec-users] spec_server errors when reloading fixture replacement pl

2009-05-24 Thread Ben Mabey
Scott Taylor wrote: Ben Mabey wrote: Scott Taylor wrote: Ben Johnson wrote: Did anyone ever figure out the factory_girl / machinist issues? I am having the same problems and can figure out how to fix it for the life of me. The first run works fine, then afterwards I get a bunch

Re: [rspec-users] spec_server errors when reloading fixture replacement pl

2009-05-23 Thread Ben Mabey
Scott Taylor wrote: Ben Johnson wrote: Did anyone ever figure out the factory_girl / machinist issues? I am having the same problems and can figure out how to fix it for the life of me. The first run works fine, then afterwards I get a bunch of these errors: No blueprint for class Venue

Re: [rspec-users] Cucumber: Running one feature under one profile

2009-05-22 Thread Ben Mabey
can see how having separate dirs can be helpful as well, but in general I kinda like the crazy profile stuff. :) FWIW, Ben I followed the instructions on http://wiki.github.com/aslakhellesoy/cucumber/setting-up-selenium and created 2 profiles: default and selenium. It works, but not if I

Re: [rspec-users] Cucumber vs Rails Fixtures

2009-05-20 Thread Ben Mabey
cute Cuke, _without_ rocking the boat! How do I actually use real, pre-existing Rails fixtures, the same as the unit tests use? For familiarity? http://wiki.github.com/aslakhellesoy/cucumber/fixtures -Ben ___ rspec-users mailing list rspec-users

Re: [rspec-users] Change cache_classes on the fly?

2009-05-20 Thread Ben Mabey
the setting in test.rb. Thanks, Todd Try changing the Rails.configuration.cache_classes setting at the appropriate times... -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] [Cucumber] Fail a scenario from After or AfterStep

2009-05-19 Thread Ben Mabey
-in-after-block#ticket-330-11 I think this should cover your use case... WDYT? -Ben On May 15, 2009, at 5:12 PM, Luke Melia wrote: On May 15, 2009, at 3:36 PM, aslak hellesoy wrote: Thanks for doing that. I have one more favour to ask: Can you show me an example of a StepDefinition that would

Re: [rspec-users] autotest?

2009-05-19 Thread Ben Mabey
) test/unit tests. Suggestions? RSpec now ships with an autospec command that acts as a wrapper.. are you using it? -Ben Thanks... dwh ___ rspec-users mailing list rspec

Re: [rspec-users] [Cucumber] Fail a scenario from After or AfterStep

2009-05-19 Thread Ben Mabey
Ben Mabey wrote: Luke Melia wrote: Any further thoughts on this, Aslak? I'd prefer to go with a solution in line with the future direction of Cucumber if possible. Cheers, Luke Have you seen what Matt added recently? https://rspec.lighthouseapp.com/projects/16211/tickets/330-gracefully

Re: [rspec-users] Cucumber rake/webrat issue.

2009-05-18 Thread Ben Mabey
and run features like this: RAILS_ENV=test rake features However, setting the RAILS_ENV is easy to forget, so I don't recommend relying on this. -Ben The versions are (most recent of the following): bmabey-email_spec (0.1.3) cucumber (0.3.5, 0.3.2, 0.3.0) rspec (1.2.6, 1.2.4) rspec-rails

Re: [rspec-users] [Cucumber] Fail a scenario from After or AfterStep

2009-05-15 Thread Ben Lovell
/bla/ do # don't remember the API, but you get the idea @browser.goto_strict('/bla') # raises on 500 errors end Aslak I have something similar to this in my fork of webrat. I will push my stuff up today at some point. Ben ___ rspec-users mailing

Re: [rspec-users] Rails HTML error page in the console.

2009-05-13 Thread Ben Lovell
that would be hella nice. Although, I realise this would be pretty difficult to achieve. That said, there certainly are times when you _need_ to see the whole HTML. Ben L ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman

Re: [rspec-users] Rails HTML error page in the console.

2009-05-13 Thread Ben Mabey
thought of? cheers, Matt Wynne http://beta.songkick.com http://blog.mattwynne.net Have you tried catching the error in an After block and opening up the page? Aslak added that functionality: https://rspec.lighthouseapp.com/projects/16211/tickets/272-pick-up-failure-on-after-hook -Ben

Re: [rspec-users] Test JSON with Cucumber

2009-05-11 Thread Ben Mabey
== 'baz'. Does that help or am I missing something about your question? -Ben ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

  1   2   3   4   5   >