new' action successfully" do
get :new
response.should be_success
end
end
# spec error output
/Users/john/.gem/ruby/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:443:in
`load_missing_constant': uninitialized constant MeetingsController
(NameError)
from
/Us
ogin_required).and_return(:true)
end
it "should get 'new' action successfully" do
get :new
response.should be_success
end
end
# spec error output
/Users/john/.gem/ruby/1.8/gems/activesupport-2.3.3/lib/active_support/dependencies.rb:443:in
`load_missing_constant
I was hoping that I could set the controller name as "MeetingsController"
which would be a polymorphic type of the Schedules controller?
On Wed, Aug 26, 2009 at 3:48 PM, Rick DeNatale wrote:
> On Wed, Aug 26, 2009 at 2:39 PM, john wrote:
> > Hi Rspec Community,
> >
hi rick,thanks for responsding. You're right, I realized that all i had to
do was stub a method inside that controller and just call
SchedulesController from the spec.
On Wed, Aug 26, 2009 at 3:54 PM, john wrote:
> I was hoping that I could set the controller name as "Meeti
Mysql::Error: You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near
'RELEASE SAVEPOINT active_record_1' at line 1: RELEASE SAVEPOINT
active_record_1
a rails ticket concerning this error which was marked invalid:
https:
Do you know of any solution for mocking this?
Also, do you think the Rails Logger is worth mocking?
Thanks very much in Advance,
John
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hey Guys,
I'm trying to mock the Rails Logger for the following code:
...
rescue TimeoutError => error
$logger.error("#{self.name} Timeout for #{path}: #{error}") and return
rescue SocketError => error
$logger.error("#{self.name} SocketError for #{path}: #{error}") and
return
My coworker and I just discovered
http://github.com/topfunky/bong/tree/master/lib/bong.rb
It's a kool script written by topfunky himself that wraps httperf in ruby.
It formats the input URLs and the results and yaml (so nice).
Any thoughts on how to implement this?
_
HTML, so a few minutes after the deploy he just visits
the web page.
Thanks in advance
John
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hello, I have a very simple non-web application I am trying to test
against. Say I have a library folder with several .rb files, and the one
that is to be executed is main.rb ('ruby main.rb' via command line).
How would I set up cucumber to run the above script and test against the
output generated
y question is, when creating a controller (or other class) that relies
on other library classes is it best to just use RSpec rather than
Cucumber to mock out the other dependencies and then bring in Cucumber
scenarios later when you know your RSpec tests are passing?
Thanks
John
--
Posted
Thanks for this David.
I suppose the thing I am so used to is testing classes in isolation
whereas Cucumber is about testing everything together.
Do Rails developers generally not test things in isolation using mocking
and stubbing?
John
--
Posted via http://www.ruby-forum.com
used to do the Acceptance testing after
all the other TDD stuff. Maybe that is me doing it wrong though.
John
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Phillip Koebbe wrote:
> Hi John. Maybe this will help:
>
> http://www.pragprog.com/titles/achbd/the-rspec-book
>
> It's a good book. But when you get to the part about Webrat and
> Selenium, just know that there are other options if you need them.
Already reading that
.google.com/group/cukes?hl=en.
> >>>
> >>>
> >>
> >> --
> >> You received this message because you are subscribed to the Google
> Groups "Cukes" group.
> >> To post to this group, send email to cu...@googlegroups.com.
> >> To u
ling
debugger wrong, or is it not working yet?
Thanks!
John
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
s/issue/24
>
> 2. try this:
>
> rdebug rspec ./spec
>
Yep, that works fine.
Thanks for your fast reply!
John
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
I'm trying to mark an example as pending w/rspec2 & rails3, but I'm getting:
Failure/Error: pending
undefined local variable or method `pending' for
#
Is 'pending' pending for rspec2? ;-)
Thanks,
John
___
rspec-u
2010/4/22 Nicolás Sanguinetti
> Yeah, just that now you define your entire example as pending. So instead
> of:
>
> You now do
>
> pending "does something" do
> this_will_fail
> end
>
Thank you! I like it, very clean.
Is that documented
here am I going wrong? (I suspect this might be more of a Rake
question than a RSpec one, but I've posted on this list just in case
my assessment is off.) Or is the goal of testing Rake tasks better
served by something other than RSpec?
Any help is appreciated. Tha
is sound. Since that exists on my side, not
Rake's, I thought it was appropriate to test.
In your view, is that an abuse of RSpec/Rake, or is this a useful thing to test?
--
John Feminella
Principal Consultant, Distilled Brilliance
On Tue, Apr 27, 2010 at 07:18, David Chelimsky wrote:
&g
sensible is to replace all usages of `require '...'`
that depend on `.` with a `require_relative` directive instead.
~ jf
--
John Feminella
Principal Consultant, Distilled Brilliance
On Wed, May 26, 2010 at 09:23, David Chelimsky wrote:
> Ruby-1.9.2 removes '.' from the $
t Yet Implemented)
===end shell
Hope that helps.
--
John Feminella
Principal Consultant, Distilled Brilliance
On Wed, May 26, 2010 at 14:07, Nadal wrote:
> I wrote following code and it did not work.
>
>
> describe User do
> it { should validate_presence_of(:email) }
> p
If I have an object `obj` that is a SpecTask, and subsequently invoke
it, is there a way to programmatically determine the number of tests
that were successful, failed, and pending as a result of running that
SpecTask?
--
John Feminella
Principal Consultant, Distilled Brilliance
This is RSpec 1.3.0.
--
John Feminella
Principal Consultant, Distilled Brilliance
On Wed, Jun 2, 2010 at 09:02, David Chelimsky wrote:
> On Jun 2, 2010, at 7:50 AM, John Feminella wrote:
>
>> If I have an object `obj` that is a SpecTask, and subsequently invoke
>> it,
This looks pretty straightforward. I do wish it were possible to
access the statistical data after the test rather than having to
capture and process it inline via the formatter, but I think this will
do. Thank you for your time, David.
--
John Feminella
Principal Consultant, Distilled Brilliance
of files within the specified directory"
it "should compute a hash of the files within the specified directory"
it "should compute a different hash if the content of a file changes"
it "shouldn't include hidden files or directories within the s
upgrade to rspec 2.0 (which appears not to have this problem),
fall back to 1.9.1, or stay where they are and manually patch? Right
now I've patched my example_group_methods.rb to be `proc` instead of
`lambda`, but I always feel a little iffy when directly modifying my
depend
-p...@standard/gems/rspec-1.3.0/lib/spec/expectations/handler.rb:21:in
`handle_matcher'
/home/johnf/.rvm/gems/ruby-1.9.1-p...@standard/gems/rspec-1.3.0/lib/spec/expectations/extensions/kernel.rb:27:in
`should'
Is this behavior by desig
On Aug 9, 7:21 pm, David Chelimsky wrote:
> It's up to you to handle the error in the controller. Something like this in
> ApplicationController:
>
> rescue_from ActiveRecord::RecordNotFound do
> render '/404.html', :layout => false, :status => :not_found
> end
Actually, I believe this i
On Jul 30, 9:14 am, S Bennett wrote:
> Am I doing something wrong or has the syntax for specifying which spec
> types the modules get included into changed?
I have the same problem. I filed an issue:
http://github.com/rspec/rspec-rails/issues/issue/159
___
I have some tests that need to load my application's seed data prior
to running, and others that don't. It's a well-defined set of
examples:
describe "needs seed data", :needs_data => true do
...
end
What can I put in my Rspec.configure { ... } block so that every test
which has ":
bly be richer.
~ jf
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/fjsquared
SO: http://stackoverflow.com/users/75170/
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
ods that have been marked as helper methods?
John Bruce___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
st", "purpose_id"=>1 }
plan_order = assigns(:plan_order)
plan_order.user_id.should be(@current_user.id)
end
Any help would be appreciated.
Thanks,
John
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
to three
-- running :each
should raise four to four
Finished in 0.0034 seconds
6 examples, 0 failures
Notice how :each runs before _each_ spec, but :all runs once, before _any_spec.
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/fjsquared
SO: http://stac
That's not quite right. :each runs before _each_ spec, while :all runs
once, before _any_ spec.
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/fjsquared
SO: http://stackoverflow.com/users/75170/
On Thu, Jan 27, 2011 at 17:56, Brian Warner wrote:
> I&
> Perhaps :any is a better name? We could add it as an alternative for the same
> as :all. WDYT?
I think that's an interesting idea, David. I whipped up a quick pull
request, which you can see here:
https://github.com/rspec/rspec-core/pull/293
~ jf
--
John Feminella
Principal
erent.
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/johnxf
SO: http://stackoverflow.com/users/75170/
On Thu, Jan 27, 2011 at 21:58, David Chelimsky wrote:
> On Thu, Jan 27, 2011 at 8:53 PM, Rick DeNatale
> wrote:
>> On Thu, Jan 27, 2011 at 6:16 PM
here:
https://github.com/rspec/rspec-core/pull/297
[1] http://groups.google.com/group/rspec/browse_thread/thread/26ea96043f46b3b6
~ jf
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/johnxf
SO: http://stackoverflow.com/users/
I am new to rspec. I followed a few tutorials and set it up to test my
existing rails project. I ran the rspec generators and created
spec/user_spec.rb to test my user.rb model.
The user.rb file starts with:
class User < ActiveRecord::Base
The user_spec.rb file starts with:
describe User do
W
Additional info:
Rails 3.0.3
Ruby 1.8.7
Gemfile:
gem "rspec-rails",">= 2.0.0.beta.10", :git =>
"git://github.com/rspec/rspec-rails.git"
gem "rspec", ">= 2.0.0.beta.10", :git =>
"git://github.com/rspec/rspec.git"
gem "rspec-core", ">= 2.0.0.beta.10", :git =>
"git://
Thanks David, this was exactly what I needed.
Per your advice I have moved user_spec.rb to the model, I was
experimenting with moving it around to see if that would change
anything.
Thanks again, rspec is a really nice piece of software.
Sam
--
Posted via http://www.ruby-forum.com/.
__
of internal questions:
1.) If you have a bunch of closely related code that always gets
tested together, why isn't it already a class or module?
2.) If it is, then why don't you just spec that instead?
3.) If you do, then what's the best way to use shared_examples_for /
it_sho
ontext, and not just across an individual test run?
Alternatively, should I just use before(:all) for this?
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/johnxf
SO: http://stackoverflow.com/users/75170/
___
rspec
d (e.g. maybe the `expensive` model should be changed to
be less expensive to create). I think I'll do that instead of trying
to go down this road further. Thanks for your help, David.
~ jf
On Fri, Jun 24, 2011 at 08:48, David Chelimsky wrote:
>
> On Jun 24, 2011, at 7:17 AM, John Femi
I'm testing methods in my ApplicationController using anonymous controller
class (not sure if that's relevant). I've somehow broken something such
that I do not have access to the routing variables that rails generates.
So rather than having something like 'response.should redirect_to
new_user_se
uby-1.9.2-p180@rspec-troubleshoot:
system:
uname: "Darwin John-Hinnegans-MacBook-Pro.local 10.8.0 Darwin
Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011;
root:xnu-1504.15.3~1/RELEASE_I386 i386"
bash:"/bin/bash => GNU bash, version 3.2.48(1)-release
(x86_64-apple-da
en if it doesn't exist
# - always returns 'baz'
foo.stub(:bar).and_return('baz')
What I'd like is something like this:
# raise ArgumentError unless foo.respond_to? :bar
# otherwise, behaves as the regular #stub does
foo.stub!(:bar).and_return('baz')
Apologies for not noticing this -- I did search, but I wasn't sure
exactly how to phrase it. Thanks for the info, David.
~ jf
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/johnxf
SO: http://stackoverflow.com/users/75170/
On Wed, Jul 27, 2011 at 16:05,
So, you start running your (full and long) rspec suite (before a checkin),
and you realize you [forgot to migrate test|didn't add some config
value|missed a curly brace].
You hit Ctrl+C and get this mesage
Exiting... Interrupt again to exit immediately.
Then the tests march on.
My question is, do
I would like to turn this:
describe TestClass do
before :all do
# set some config
end
after :all do
# restore some config
end
# do a bunch of tests to this
end
into
describe TestClass do
with_config_value(X)
# do a bunch of tests to this
end
Basically, I want to include before :all and after
Not sure if this can be done using RSpec and something else but I'm
trying to test a website using Chrome specifically. The website seems
to intermittently hang up Chrome but not Safari and it passes functional
tests without a browser.
I want to run a test that loops through loading the site with
Thank you.
I'll check it out.
John
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
I was trying to stub something "globally", across all tests today, and had
some trouble.
I tried
RSpec.configure do |config|
config.before(:all) do
MyClass.stub(:my_method)
end
end
seems that stub is not available here yet. (I was stubbing a class method,
and the class was loaded correc
Thanks, cheers
On Sun, Aug 14, 2011 at 8:17 PM, David Chelimsky wrote:
> On Aug 14, 2011, at 10:15 PM, Justin Ko wrote:
>
> On Sun, Aug 14, 2011 at 3:48 PM, John Hinnegan wrote:
>
>>
>>
>> I was trying to stub something "globally", across all tests today
On Sun, Aug 14, 2011 at 3:48 PM, John Hinnegan wrote:
>
>>
>>
>> I was trying to stub something "globally", across all tests today, and had
>> some trouble.
>>
>> I tried
>>
>> RSpec.configure do |config|
>> config.before(:all
y ideas about how I can get this information, or do I need to roll
my own benchmarker?
~ jf
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/johnxf
SO: http://stackoverflow.com/users/75170/
___
rspec-users mailing list
rs
Is there a way to run an `around` block once for every spec *file*
(not spec)? (I want to measure which files take the longest amount of
time, count the number of specs in each file, and then report the
average spec running time for that file.)
~ jf
--
John Feminella
Principal Consultant
each) do
@geocoding_client = Geocoding::FakeGeoClient.new
# generate warning if the spec doesn't cause a hit to Geocoding.client
Geocoding.warn_if_not_received(:client).and_return(@geocoding_client)
end
end
~ jf
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://
> Why not just use the --profile option?
Doesn't --profile only return the ten slowest examples? I have
thousands of specs, so I need a little more data than that.
~ jf
--
John Feminella
Principal Consultant, BitsBuilder
LI: http://www.linkedin.com/in/johnxf
SO: http://stackoverflow.c
Hey Everyone,
Quick question: is there a way to format the example text such that it's in
nested format (much like the option *rspec -cfn*)? It's visually easier for
me to read and comprehend the failures and pending examples.
Thanks,
John
P.S. First time posting here, so I gotta
Hi all,
I'm not sure if this is a cucumber or webrat thing given that I only
starting tinkering with both last night for the first time (testing
newb as well), but I've come across an oddity when trying to write a
scenario to create a user.
Scenario: Register new user
Given I am on
ant...just tally up the results and then at the
> end build a graph from it.
>
> Pat
> ___
> rspec-users mailing list
> rspec-users@rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>
--
John Goodsen
ly appear once
- test 1
- this should only appear once
- test 2
So my question is, how can you add before/after(:all) blocks that run
once and only once for for all examples, if all the examples are
nested in one main describe block? Is that something that's even
pos
Thanks for the reply David - much appreciated. At least now I know
that it can't be done, rather
than pursuing it further for now. I'll just have to live without that
functionality for now and add
it later on if a fix is made available.
Regards,
John
On Feb 4, 2:03 pm, David Chelim
quot;A series of tests" do
before(:all) do
@browser = Watir::Browser.new
end
it "Test 1: it should go to www.google.com" do
@browser.goto("www.google.com")
end
end
Obviously, been able to use nested describe groups would make the
tests easier
to read for n
> Have you considered using Cucumber rather than RSpec as the driver to
> run these tests?
TBH, I haven't really looked at Cucumber much, as I'm just getting
started with Rspec itself. My impression though was that Cucumber
replaced the story runner and the way my tests are structured just
seem
ponse.should have_selector("dl:nth-child(#{i+3})") { |td|
td.inner_text.should == row
}
end
end
(this fails)
I can follow the logic of the table but for some reason I can't write
this test for a list.
Any help would be appreciated.
John
ing
froobles:'
--
Again any help will be appreciated.
John
On Feb 26, 1:08 pm, Ben Mabey wrote:
> Mark Wilden wrote:
> > On Thu, Feb 26, 2009 at 7:59 AM, aslak hellesoy
> > wrote:
>
> >> puts response.body
>
> > Another de
Where do I put cucumber.yml? I can't find anything mentioned in the
documentation.
Thanks
John Small
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
David Chelimsky wrote:
> On Thu, Mar 5, 2009 at 8:21 AM, John Small wrote:
>> Where do I put cucumber.yml? I can't find anything mentioned in the
>> documentation.
>
> In the project root (or wherever you're typing commands from).
>
> Cheers,
> David
Ok,
It's SRP applied to cucumber steps - just do it - keep your steps
small and composable
Sent from my iPhone
On Mar 14, 2009, at 9:18 PM, Matt Wynne wrote:
On 15 Mar 2009, at 00:30, Josh Chisholm wrote:
That sounds like a great way to avoid the instance variable.
Why is a named record pr
ow on 1 project.
rcumber is at http://github.com/jgoodsen/rcumber/tree/master
John
On Thu, Apr 2, 2009 at 1:56 PM, Phlip wrote:
> Would a wiki with these features interest anyone?
>
> - config.yaml points to your projects
> - serve, highlight, edit & run each Cucumber file
&
I never said it was done - you are supposed to help out Phlip!
On Fri, Apr 3, 2009 at 6:52 PM, Phlip wrote:
> John Goodsen wrote:
>
>> this was my vision with rcumber - I haven't worked on it for a few months,
>> but it's basically a rails plugin that provides a web
s/support/env.rb
I am getting Ambiguous match of my steps - but I only have a single class of
steps, NavigationSteps.
any ideas what's going on?
--
John Goodsen RADSoft / Better Software Faster
jgood...@radsoft.comLean/Agile/XP/Scrum Coaching and Training
http://www.rad
It's like
the steps are getting added again before each scenario runs - I've got to be
missing something really basic here.
thanks in advance, John
PS: Here's the one, and only one, step class that I'm using (implementation
removed for shortness):
package com.timeinc.ecom
ber/jruby using
the register_steps() method, my test is acting like the step classes is
getting added again for each scenario?
thanks for any help,
John
On Thu, Apr 9, 2009 at 2:19 PM, John Goodsen wrote:
> Hi all,
>
> I'm not quite sure I understand how env.rb is loaded in the cu
OK, I'll reproduce in a simple example and create a ticket...
On Sat, Apr 11, 2009 at 3:56 AM, aslak hellesoy wrote:
>
>
> On Fri, Apr 10, 2009 at 5:29 PM, John Goodsen wrote:
>
>> so I'm still stumped... how do I tell keep cucumber from loading the
>> *SAM
features
I see the ambiguous steps definition error again, but I'm also seeing
argument type mismatch in StepDefinitionExtras...
Attached below is the dump of my test run. Hope this helps.
thanks in advance,
--
John Goodsen RADSoft / Better Software Faster
jgood...@ra
uby -S cucumber features
I see the ambiguous steps definition error again, but I'm also seeing
argument type mismatch in StepDefinitionExtras...
Attached below is the dump of my test run. Hope this helps.
thanks in advance,
--
John Goodsen RADSoft / Better Software Faster
jgood
Aslak Hellesøy wrote:
> On Tue, Apr 14, 2009 at 12:08 AM, John Goodsen
> wrote:
>
>> OK, I'll reproduce in a simple example and create a ticket...
>>
>>
> Excellent - I'll get to it ASAP
I never got a ticket from any
Not really a cucumber question, but I'm not seeing ansi colors on a Windows
XP consoles.
Some googling around says that windows consoles don't support ansii color
codes. If this is the
case, what are you windows cucumber folks using?
thanks,
--
John Goodsen RADSof
range of columns you
> want for a column hash. (This could work along with my example where you
> don't specify a range, just any token, and get the "rest").
>
>
--
John Goodsen RADSoft / Better Software Faster
jgood...@radsoft.comLean/Agile/XP/S
+1. I like it.
--
John Goodsen RADSoft / Better Software Faster
jgood...@radsoft.comLean/Agile/XP/Scrum Coaching and Training
http://www.radsoft.com Ruby on Rails and Java Solutions
On Wed, Apr 22, 2009 at 4:22 PM, James Byrne wrote:
> David Chelim
ustomer is. Even if we communicate at the cucumber level with
our customer, we still perform our TDD using RSpec on controllers, models
and domain objects. Sometimes we use cucumber, sometimes we don't - it all
depends on what we're building and who the customer is.
--
John Goodsen
2 of code.
>
fwiw, +1 on that. refactor to a descriptive method and get used to
refactoring cucumber implementations to keep the cukes dry. moist cukes get
moldy - my grams taught me that.
--
John Goodsen RADSoft / Better Software Faster
jgood...@radsoft.comLean/Agi
hours before you replied or fixed things - as a result,
cucumber-java is working great for us on this current project!
thanks again,
--
John Goodsen RADSoft / Better Software Faster
jgood...@radsoft.comLean/Agile/XP/Scrum Coaching and Training
http://www.radsoft.com
scasts.com/) has some screen cast with
cucumber but it is rails related.
John
--
Support me on my MS 150 ride May 2-3, 2009 Frisco to Fort Worth
http://main.nationalmssociety.org/site/TR?px=5933747&fr_id=10662&pg=personal
training - http://www.dailymile.com/people/john_ivanoff
On Apr 29, 7:4
erriding some
rendering - but it feels like a bad hack.
--
John Goodsen RADSoft / Better Software Faster
jgood...@radsoft.comLean/Agile/XP/Scrum Coaching and Training
http://www.radsoft.com Ruby on Rails and Java Solutions
___
Another thing I'm looking into is trying to hook into the visitor/formatting
stuff and just spit out the extra data fixture data when the test runs...
thoughts anyone?
On Wed, May 6, 2009 at 2:13 PM, John Goodsen wrote:
> I have the following step that I want to re-use in several scenar
ey don't, then it was just noise.
Still, how hard would it be to have some kind of a include_partial '...'
behavior to cucumber tests ? There are always going to be times when the
details are important enough that they should be seen in the test and we
want to express i
a full description string of a nested example like
__full_description used to do? Can I also access an example
description in the after(:each) block without referring to the self
object? Thanks in advance.
Regards,
John
___
rspec-users mailing list
rspec-users@rubyfor
5645-rspec/tickets/873-rspec-12x-does-not-contain-__full_description-method
Thanks again for the quick reply.
Regards,
John
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
ario < Scenario::Base
def load
create_person :name => "John"
end
helpers do
def create_person(attributes={})
create_record :person, attributes[:name].downcase.intern, attributes
end
def login_as(person)
# insert person into session
end
end
en
I just updated the README. It gives a better overview of the Scenarios
plugin now:
http://faithfulcode.rubyforge.org/svn/plugins/trunk/scenarios/README
--
John Long
http://wiseheartdesign.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http
$~[4].to_i) / 10 * 10, 50].min
growl "FAIL", "#{output}", "#{image_root}/fail#{cnt}.png", 2
else
growl "Pass", "#{output}", "#{image_root}/pass.png"
end
end
end
end
(for the doomguy / growl setup)
My co
I have my application happily generating UUID primary keys using the
uuidtools gem.
But the auto-generated specifications created by "script/generate
rspec_scaffold...", etc, assume that one is using a sequential integer
primary key.
For those who have hit this same issue, is it just a matter of
David Chelimsky wrote:
> What happens when you run the generated examples?
My code uses single table inheritance (STI) and a MySQL database, so I
thought it best to create some new simple projects with a single model.
(1) I created a new project using SQLite with a single model. All 58
auto-ge
Jarkko Laine wrote:
> If you add some new code (without writing new specs for it),
> even in the form of using plugins, and your existing specs still run,
> it doesn't mean your code is working correctly because you didn't
> write specs for that part of the functionality yet.
That makes a lot of
1 - 100 of 126 matches
Mail list logo