[rspec-users] Rspec Style

2013-08-29 Thread Curtis Schofield
My Question is about ordering of describes / context and the various styles that people are using that deviate from . Some context first: Started TDD when i was a university researcher - as a way to do bug fixes without regression. Started using rspec in 2006 on the side and eventually switched o

Re: [rspec-users] hiiiiiii...........lots of question ..

2012-08-02 Thread Curtis Schofield
. -- Curtis J Schofield BlazingCloud.net "Creativity can solve anything" - George Lois (source: art & copy) On Aug 1, 2012, at 10:14 PM, Fahim Patel wrote: > i implement all this question but i dont have knowledge perfectly > ...ok > > explain with example

Re: [rspec-users] Simple code dosn't work

2012-04-04 Thread Curtis Schofield
-- Curtis J Schofield BlazingCloud.net "Creativity can solve anything" - George Lois (source: art & copy) On Apr 4, 2012, at 3:02 PM, Brad Symons wrote: > I think you have a syntactical error on the line thats throwing the > error, you state: > >>

Re: [rspec-users] Should I use cucumber or Controller RSpecs or both?

2012-02-15 Thread Cathal Curtis
Cathal Curtis wrote in post #1046554: I found what I think is the answer to my question by chance while doing some further searching on the web: http://groups.google.com/group/ruby-capybara/browse_thread/thread/7b6c92e4c96c9135 Jonas Nicklas describes it as using the wrong tool for the job

[rspec-users] Should I use cucumber or Controller RSpecs or both?

2012-02-13 Thread Cathal Curtis
Hi All, I'd like to get some other's opinions on testing controllers. Say I have a model and I want to prevent deletion of instances of it. The controllers's destroy action simply redirects to an error page - nothing else. Lets assume the relevant views have no links or buttons to delete the inst

[rspec-users] Test Design Question #1

2011-03-30 Thread Curtis j Schofield
I have an model in rails with an after_create that generates another object (for the purpose of making an audit trail). In the unit test - i want to verify this behavior. This behaviour - in other tests is breaking some exceptions around (include) - since the creation of the new audit trail is le

[rspec-users] Test Design Question #2

2011-03-30 Thread Curtis j Schofield
I am designing a test around a class that interacts with TCPSocket - I have used a mock and have asserted as minimal an interface as I can - centered around the IO methods. Should i be using a stub instead and stub on open and read - instead of mock with open, read , close and so forth. Is there

[rspec-users] Rspec is swallowing undefined methods in it's method_missing and looping forever

2011-02-21 Thread Curtis j Schofield
/rspec-expectations-2.5.0/lib/rspec/matchers/method_missing.rb:7 We noticed this. Curtis Schofield & Anita Kuno -- make haste slowly \ festina lente \ - mobile +1_415_632_6001 cur...@robotarmyma.de http://robotarmyma.de ___ rspec-users mailing

[rspec-users] [Cross Post] Volunteers and Teachers <3 October 22-23 Rails Outreach for Women

2010-09-23 Thread Curtis j Schofield
[Forgive the Crosspost - this is a community mailout ] What: October 22-23 Rails Outreach for Women URL: http://www.meetup.com/sfruby/calendar/14835957/ Short: Wanted : Rails, BDD/TDD, Cucumber, Ruby Teachers / Volunteer Long: Do you want to share your experience? Have you ever thought " Gee -

Re: [rspec-users] RSpec Controller Testing - render_templte Issue

2010-07-12 Thread Curtis
On Jul 12, 2010, at 11:11 AM, Rails Learner wrote: Curtis j Schofield wrote: On Mon, Jul 12, 2010 at 9:44 AM, Rails Learner wrote: # me error: response.should have_selector( 'input', :type

Re: [rspec-users] RSpec Controller Testing - render_templte Issue

2010-07-12 Thread Curtis j Schofield
On Mon, Jul 12, 2010 at 9:44 AM, Rails Learner wrote: > Hi! > > I am writing controller specs and getting a weird expectation failure. > Here is the example. Please read the comments for details: > >   it 'renders children/_show partial' do >      post :create, :child => @child > >      # The line

Re: [rspec-users] RSpec 2.0, Cucumber, ruby-debug

2010-07-02 Thread Curtis
On Jul 1, 2010, at 10:48 PM, Woody Peterson wrote: What are you experiencing and what are you expecting? If you use rspec in cucumber, cucumber doesn't support --debug as an option, so you can't use debuggers in cucumber + rspec. Given RSpec 2.0's api, the expected behavior is declaring

Re: [rspec-users] Entering text into a text field using rspec

2010-07-01 Thread Curtis
On Jun 29, 2010, at 4:44 PM, tester86 wrote: HI I am new to rspec. I am at a web page and in that page I want to enter in some text and then click send. Sorry - toppost is a habit - check out capybara and see how it can be used stand alone with rspec to interact with the page it

Re: [rspec-users] Entering text into a text field using rspec

2010-07-01 Thread Curtis
Check into capybara On Jun 29, 2010, at 4:44 PM, tester86 wrote: HI I am new to rspec. I am at a web page and in that page I want to enter in some text and then click send. it "will enter in some text 'asf'" do end what command would I used to enter in the text as I have searched google bu

Re: [rspec-users] Rspec

2010-06-28 Thread Curtis j Schofield
Any suggestions for how to detect that the methods are getting executed that need to get executed? On Mon, Jun 28, 2010 at 11:50 AM, David Chelimsky wrote: > On Jun 28, 2010, at 1:31 PM, Curtis j Schofield wrote: > >> Hi - I extracted some methods in a refactor and put them

[rspec-users] Rspec

2010-06-28 Thread Curtis j Schofield
Hi - I extracted some methods in a refactor and put them into a nice module and i'm in the process of making sure it is covered as a first-class unit. I'm getting some strange behavior with what seems really straight forward code. https://gist.github.com/6d54448d70b07a126c51 _

Re: [rspec-users] [Cucumber:4242] Cucumber vs, RSpec

2010-04-27 Thread Curtis Schofield
Single responsibility Principle On Tue, Apr 27, 2010 at 11:38 AM, Curtis Schofield < curtis.schofi...@gmail.com> wrote: > Personally SRP violations are making my work hell right now on a 2 year old > rails system. My first concern when re-factoring is putting test in place - > t

Re: [rspec-users] [Cucumber:4242] Cucumber vs, RSpec

2010-04-27 Thread Curtis Schofield
Personally SRP violations are making my work hell right now on a 2 year old rails system. My first concern when re-factoring is putting test in place - there isn't much coverage when i started. I've been doing that for the past 2 weeks and I've found that cucumber is doing well for getting higher