/
SyntaxError: compile error
(irb):2: syntax error, unexpected '~', expecting $end
'abc' ~! /def/
^
from (irb):2
And of course the solution is to use should_not
'abc'.should_not =~ /def/
or
'abc'.should_not match(/def/)
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github
On Fri, Jul 29, 2011 at 7:59 AM, David Chelimsky dchelim...@gmail.comwrote:
Thanks for setting things straight.
Just happy to be here sir!
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http
/active_record_validations_callbacks.html#creating-custom-validation-methods
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
for the list
command to show,
perhaps that file changed.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
On Sun, Jan 30, 2011 at 9:09 AM, David Chelimsky dchelim...@gmail.com wrote:
You can either use mock_model or mock_stub
David,
Did you mean to say stub_model rather than mock_stub?
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter
} ^^ ===
Rails.logger.debug === ^^ #{m.example.location} ^^ ===
end
end
I'm thinking this might be an interesting use case for a custom formatter.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http
) for some people, after(:any) to me evokes the
curent meaning of after(:each) more than it does after(:all), i.e.
after any OF the examples rather than after all the examples, because
I'd never say after any the examples.
But that might just be me.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2
?
That sounds reasonably pragmatic to me.
Of course I've only had two sips of coffee this morning. G
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn
On Tue, Jan 18, 2011 at 1:31 PM, David Chelimsky dchelim...@gmail.com wrote:
On Jan 18, 2011, at 11:08 AM, Rick DeNatale wrote:
On Tue, Jan 18, 2011 at 9:15 AM, David Chelimsky dchelim...@gmail.com
wrote:
Hi all,
Since the release of rspec-2.0, I've been following Rubygems' rational
for the option if you decide to do #1
end
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
to get this working would really be
appreciated.
Michelle
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
--
Rick DeNatale
Blog: http
matchers (including the
Shoulda matchers) freely available.
--
Rick DeNatale
Help fund my talk at Ruby Conf 2010:http://pledgie.com/campaigns/13677
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person
-while-youre-having-fun-testing
More recently I've been using timecop
http://github.com/jtrupiano/timecop
It allows time to be either frozen or offset, and it stubs Time,
DateTime and Date to do the right thing.
--
Rick DeNatale
Help fund my talk at Ruby Conf 2010:http://pledgie.com/campaigns
of the
call are 'as if' the super call were made.
If you could test that the super call was made it would be testing
that the implementation were a certain way more than the behavior of
the object, and that's the road to writing brittle tests.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2
On Thu, Sep 30, 2010 at 10:36 AM, Zhi-Qiang Lei zhiqiang@gmail.com wrote:
On Sep 30, 2010, at 9:56 PM, Rick DeNatale wrote:
What you really should be testing that the observable effects of the
call are 'as if' the super call were made.
If you could test that the super call was made
On Tue, Aug 10, 2010 at 9:40 AM, Ashley Moran
ashley.mo...@patchspace.co.uk wrote:
On 9 Aug 2010, at 17:37, Rick DeNatale wrote:
Well, I'd still use a different file name suffix which I could set
textmate to recognize as a spec
_sspec.rb or _sgroup.rb
something like that.
Hi Rick,
I
to be in Beta 15.0 supposedly the final beta version.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
time.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
___
rspec-users
are invoked in the
example won't it?
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
On Mon, Aug 9, 2010 at 11:23 AM, David Chelimsky dchelim...@gmail.com wrote:
On Aug 9, 2010, at 9:56 AM, Rick DeNatale wrote:
On Sun, Aug 8, 2010 at 11:45 PM, Elliot Winkler
elliot.wink...@gmail.com wrote:
On Sun, Aug 8, 2010 at 3:53 PM, Phillip Koebbe phillipkoe...@gmail.com
wrote
, delimiter matching etc. and the cost of having
a separate language definition in the RSpec bundle in terms of
confusion and or maintenance probably isn't worth it.
For more about how textmate detects file times see:
http://blog.macromates.com/2007/file-type-detection-rspec-rails/
--
Rick DeNatale
On Thu, Aug 5, 2010 at 5:16 AM, Bruno Cardoso li...@ruby-forum.com wrote:
Rick Denatale wrote:
Your pastie says
# this should have made Account go back to its original state but
it's not working.
# this works outside of RSpec.
but I don't understand in what context. In general this won't
# = [m1]
Foo.class_eval(def m2;end)
foo.methods - Object.instance_methods # = [m1, m2]
Object.send(:remove_const, 'Foo')
defineFoo
foo2 = Foo.new
foo2.methods - Object.instance_methods # = [m1]
foo.methods - Object.instance_methods # = [m1, m2]
foo.class == foo2.class # = false
--
Rick DeNatale
the results rather than the implementation:
e.g.
foo = Foo.new
foo.bar.should == foo
Assuming that foo and bar have public accessors for bar and foo respectively.
If not you can use instance_variable_get to 'get' around that.
HTH
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com
http://talklikeaduck.denhaven2.com/2010/06/25/making-rspec-rake-and-bundler-play-well-together
Note this is for Rails 2.3, not sure if Rails 3 and Rspec 2 would be different.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
dependencies.
I have a similar issue with the RiCal gem. It works with either the
activesupport OR tzinfo gems, rather than require either I just
document that it requires one or the other and leave it up to the
user.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http
-dev gem or
something like that.
Breaking up gems seems to have been a theme in the transition from
Rails 2 - Rails 3.
Just an idea
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person
than
describe user_sessions/new.html.haml do
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
On Fri, Jun 11, 2010 at 11:17 AM, David Chelimsky dchelim...@gmail.com wrote:
On Jun 11, 2010, at 10:56 AM, Rick DeNatale wrote:
On Thu, Jun 10, 2010 at 4:10 PM, David Chelimsky dchelim...@gmail.com
wrote:
On Thu, Jun 10, 2010 at 3:14 PM, geetarista geetari...@gmail.com wrote:
Since Rspec
directive to specify a particular version of
active_record.
Have a look at http://github.com/rubyredrick/ri_cal/tree/master/tasks/
Particularly spec.rake and the files in the gem_loader sub directory.
HTH
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com
(url)}.should raise_exception
end
end
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
be better if the failure were reported like this:
expected: ([:all, {:conditions=[value LIKE ?, %chart_event%]}])
got: (:all, {:conditions=[value LIKE ?, %chart_event%]})
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
specs tend to be brittle.
If views have a lot of logic, that's a code smell. In rails such
behavior belongs in either the controller, or a helper, and that's
where I invest my spec efforts.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter
as a parameter, and test
that method passing in a StringIO.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
of testing harness for
Rake tasks with RSpec. I tried googling but kept coming up with stuff
about using the rake tasks provided by RSpec.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Github: http://github.com/rubyredrick
Twitter: @RickDeNatale
WWR: http://www.workingwithrails.com
be:
http://github.com/rspec/rspec
http://github.com/rspec/rspec-core
http://github.com/rspec/rspec-dev
http://github.com/rspec/rspec-expectations
http://github.com/rspec/rspec-mocks
http://github.com/rspec/rspec-rails
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http
that the current beta PDF will serve as the best checkpoint
for RSpec 1 and Rails 2.x. I guess it's time to print a personal
hard-copy.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn
(:comments)
From one aspect, I find all this very nice. It makes writing queries
easier and much more readable.
On the other hand these are the kind of train wreck violations of
the strong suggestion of Demeter which makes mocking and stubbing
difficult among other things.
Thoughts?
--
Rick DeNatale
tend to do, is to not use chained scopes in
controllers, but define model methods which use them, which allows for
stubbing/mocking those methods, and keeps the train wrecks isolated.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http
, although I'd guess in most conventional rails apps these
days you'd actually stub the controllers current_user method to return
@user rather than stubbing User.find
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com
you
delay the heat death of the universe! G
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
guitar!
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
___
rspec-users mailing list
rspec
, but my
imagination is failing me as to how to do it.
Any ideas?
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
is clearer IMHO.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
___
rspec-users mailing list
probably wanted
1.should be_a FixNum
instead of
1.class.should be_a Fixnum
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
so. Appreciation is always appreciated :)
I can appreciate that!
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
.
However, I need to point out that
although
1.should be_a Fixnum
that
1.class.should_not be_a Fixnum
because
1.class == Fixnum which is after all a Class, and not a Fixnum itself.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http
On Mon, Dec 28, 2009 at 12:18 AM, Andrew Premdas aprem...@gmail.com wrote:
2009/12/22 Rick DeNatale rick.denat...@gmail.com
Please explain why - thanks.
Because, classes and class variables aren't guaranteed to be persistent.
In development mode, classes can get reloaded, which wipes out
to debug failures if you preserve the evidence.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
@params in the User instances (in update_with_profile).
HTH,
David
Also counting on class variables to retain state in Rails is a recipe
for disaster.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com
a certain set of paths do
before(:each) do
# code to set up the paths however the included specs need them, e.g.
@paths = [a/b, c/d]
end
it should be able to recreate them do; end
it ...; end
end
I tend to use describe for the top level, and context when nested.
--
Rick DeNatale
Blog
is to minimize disturbing the system being speced.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
as
none_of(x, y, z).should be_allowed_to(...)
maybe
[x, y, z].should all_not_be_alllowed_to(...)
but I'm not sure
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http
the RSpec book which is currently under
development and covers both RSpec and Cucumber. Although it's
pre-production, it's available under the Pragmatic Programmers beta
program.
http://pragprog.com/titles/achbd/the-rspec-book
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http
you're talking about.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
___
rspec-users
I'm now in the process of facing converting a rails app to use Ruby 1.9.1.
Has anyone figured out how to use 1.9 with the RSpec bundle in
textmate and preferably how to switch back and forth?
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
be a comparison/conversion chart
somewhere, like the Test:Unit = RSpec translation guide in the RSpec
docs, but my usually awesome google skills seem to be failing me on
this.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http
passenger and apache, but I've done similar things
on a linux development machine before.
On OS X, the passenger preference pane makes this dead easy, and
passenger runs the rails app on demand, and shuts it down when it's
been idle.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
--
Rick DeNatale
Blog: http
to run the spec under rdebug, put a breakpoint before
the stub! call and step into it to see what's going on.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http
to find controller methods anyway.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
/process
are holding you back.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
___
rspec
it.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
___
rspec-users mailing list
rspec-users
@some_object.should_receive(:some_message).with(any_of(a, b, c))
As long as you don't need to set different return values for different
arguments, that could be done with a new ArgumentMatcher.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http
actually calling anything after
the message expectation, so I suspect that this is a poorly abstracted
version of your actual code.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
,
albeit for a different field.
http://www.screwcumber.com/
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
of some_method and it's
relationship to the intialize method. It's more gray-box than
black-box.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com
, and sometimes something else
like the number of bytes, depending in the receiver object.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com
and
not the language - the same is true for Rspec. I hope to laugh at my
mistakes in a year or two :-)
And I tend to think of regular expressions as a language within a
language. Lot's of programming languages incorporate regular
expressions with slight variations.
--
Rick DeNatale
Blog: http
).should include(mark)
end
\n is a ruby string literal representing a new-line, so
@messenger.string.split(\n) results in an array comprising each
line within @messenger.string
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http
I just published a quick article showing how to use the patch I
provided and David just release in RSpec 1.2.7 to run your specs using
multiruby:
http://talklikeaduck.denhaven2.com/2009/06/24/rspec-meet-multiruby
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http
went the way I did was that it allows other rake
tasks to depend on the multiruby rspec tasks without requiring ALL
rake tests to run under multiruby.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person
, but the trade-offs in when and when not
to use them.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
will see that message.
If I couldn't come up with a better name for foo_message which
revealed that, I'd probably prefer leaving the if test in the view.
Resolving the tensions between things like dumb views and intention
revealing names is why they pay us the big bucks! G
--
Rick DeNatale
Blog
of
zentest which a lot of folks don't use as much.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
an object which should not get any messages do
it should not receive any messages do
o = mock(Object)
o.foo
end
end
Mock 'Object' received unexpected message :foo with (no args)
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR
On Wed, Jun 3, 2009 at 2:30 PM, David Chelimsky dchelim...@gmail.com wrote:
On Wed, Jun 3, 2009 at 1:26 PM, Rick DeNatale rick.denat...@gmail.com wrote:
On Wed, Jun 3, 2009 at 2:01 PM, David Chelimsky dchelim...@gmail.com wrote:
On Wed, Jun 3, 2009 at 12:46 PM, Sebastian W. li...@ruby-forum.com
://github.com/svoop/autotest-fsevent/tree
and autotest-growl
http://github.com/svoop/autotest-growl/tree
I opened a ticket asking for some means to control whether or not it
tries to run Cucumber scenarios
https://forge.bitcetera.com/issues/show/18
--
Rick DeNatale
Blog: http
On Thu, May 28, 2009 at 1:31 PM, Ben Lovell benjamin.lov...@gmail.com wrote:
On Thu, May 28, 2009 at 6:05 PM, Rick DeNatale rick.denat...@gmail.com
wrote:
Now you don't happen to be using the recently released autotest-mac
gem are you? It does automatically run scenarios, and I'd like
of:
AdSenseHeavenParser.should_receive(:parse).with(keyword_list_contents).and_return({:keywords
= [], :errors = []})
You should have
controller.should_receive(:parse).with(keyword_list_contents).and_return({:keywords
= [], :errors = []})
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com
) the require wouldn't be needed since it would be autoloaded.
Perhaps the problem lies there somewhere.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http
user, to me the Java stuff is
the noise G.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
On Sat, May 16, 2009 at 11:57 AM, David Chelimsky dchelim...@gmail.com wrote:
On Fri, May 15, 2009 at 11:50 AM, Rick DeNatale rick.denat...@gmail.com
wrote:
Ideally I'd like to
have rake tasks like
rake spec:tzinfo
rake spec:activesupport
rake spec:both
The problem is that I think I
On Sun, May 17, 2009 at 9:46 AM, Rick DeNatale rick.denat...@gmail.com wrote:
So I tried to make a spectask to run the specs after require in
activesupport by adding this in my rake file:
desc Run all specs with activesupport
Spec::Rake::SpecTask.new(:spec_as) do |t|
t.spec_opts
purposes? I was unable to find the RSpec license to confirm. Gallio itself
is open source and is distributed using the Apache License 2.0.
RSpec is licensed under the MIT license:
http://github.com/dchelimsky/rspec/blob/dfffe80e65067e8410f54d30b9de96a942b1fa10/License.txt
--
Rick DeNatale
spec:tzinfo
rake spec:activesupport
rake spec:both
The problem is that I think I need something like the fork option for
spec task similar to the one in the cucumber task, since once loaded I
can't unload one or the other gem in the same ruby process.
Is there a trick I'm missing?
--
Rick DeNatale
does this.
David C. and I put support for the -u/--debugger options for the spec
command a few releases back, I don't know if this has any effect on
cucumber.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http
thing that NEEDS to be done is a very good way to stave off the desire
to shave yaks.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
___
rspec-users mailing list
rspec-users
of RSpec is fascinating- very organic and collaborative.
For another recent barometer reading of how much ReSPECt RSpec gets
these days, have a look at http://rubytrends.com/
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http
-
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021
On Mon, Apr 27, 2009 at 8:13 AM, Rick DeNatale rick.denat...@gmail.com wrote:
On Sun, Apr 26, 2009 at 11:38 PM, Ben Mabey b...@benmabey.com wrote:
Rick DeNatale wrote:
I finally plunked down for the beta RSpec bundle and I'm working
through the initial example. Although I'm a fairly
On Sun, Apr 26, 2009 at 11:38 PM, Ben Mabey b...@benmabey.com wrote:
Rick DeNatale wrote:
I finally plunked down for the beta RSpec bundle and I'm working
through the initial example. Although I'm a fairly experienced RSpec
user, I'm stlll learning new tricks.
Anyway, I'm going though
On Mon, Apr 27, 2009 at 10:07 AM, aslak hellesoy
aslak.helle...@gmail.com wrote:
On Mon, Apr 27, 2009 at 3:47 PM, Rick DeNatale rick.denat...@gmail.com
wrote:
On Mon, Apr 27, 2009 at 8:13 AM, Rick DeNatale rick.denat...@gmail.com
wrote:
On Sun, Apr 26, 2009 at 11:38 PM, Ben Mabey b
? Is there an
environment variable I need to set in textmate?
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
false
Cucumber runs fine from bash.
Am I missing some setup?
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale
to
another flight leaving on the following day when you reuse the steps in
other cases. I found myself wanting to do meta bdd on my story code!
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick
grating. I'm tempted to write a pair of matchers
like be_truthy and be_falsy, but I was wondering what other RSpec users have
to say.
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
On Wed, Mar 18, 2009 at 4:28 PM, Rick DeNatale rick.denat...@gmail.comwrote:
I've got a simple ActionMailer::Base subclass:
class InfoMailer ActionMailer::Base
def info(user, zip_name)
recipients user.email
subject Requested Info
attachment(:content_type = application/zip
the only part.
I've got one other mailer method in that mailer which doesn't contain an
attachement, and it's body comes out fine.
I'm not sure what's going on here, and I'd appreciate any
help/insight/condolences...
--
Rick DeNatale
Blog: http://talklikeaduck.denhaven2.com/
Twitter: http
1 - 100 of 191 matches
Mail list logo