behaved as expected?
Is there a collaborator on this class that it will send a message to?
Is there some state that it will set on this class that I can read?
cheers,
Matt
--
http://mattwynne.net || https://twitter.com/mattwynne ||
http://the-cucumber-book.com || http://bddkickstart.com ||
http
class, then assert on that?
cheers,
Matt
--
http://mattwynne.net || https://twitter.com/mattwynne ||
http://the-cucumber-book.com || http://bddkickstart.com ||
http://www.relishapp.com
___
rspec-users mailing list
rspec-users@rubyforge.org
http
://pragprog.com/book/achbd/the-rspec-book
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Teacher, http://bddkickstart.com
Founder, http://www.relishapp.com/
Twitter, https://twitter.com/mattwynne
___
rspec
describing in this spec), then use #context inside
that to explain the different hoops I'm making that thing jump through in my
examples.
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Founder, http://www.relishapp.com/
Twitter, https
and you never see it.
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Founder, http://www.relishapp.com/
Twitter, https://twitter.com/mattwynne
___
rspec-users mailing list
rspec-users@rubyforge.org
/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Founder, http://www.relishapp.com/
Twitter, https://twitter.com/mattwynne
(Jonathan del Strother)
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Maybe you need some tests for this email template ;)
cheers,
Matt
--
Freelance programmer coach
Author, http
around the ActiveRecord model that makes sense in your
domain, and can therefore be easily mocked.
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Founder, http://www.relishapp.com/
Twitter, https://twitter.com/mattwynne
Hmm, that's not exactly what I was thinking of... I don't mean that there
should be no arguments at all, but that the arguments should _not_ be of a
certain match.
On Tuesday, April 10, 2012 8:48:37 PM UTC-7, Justin Ko wrote:
On Apr 9, 2012, at 2:41 PM, Matt Hauck wrote:
Is there a way
, please email supp...@relishapp.com and we can sort it out
offline.
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Founder, http://www.relishapp.com/
Twitter, https://twitter.com/mattwynne
___
rspec
references to the
polymorphic models, but I don't see how to do that.
Can you enumerate those reasons? This doesn't seem like a good use-case for
mock_model, to me.
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Founder, http
On 7 Mar 2012, at 11:39, Morten Møller Riis wrote:
On Mar 7, 2012, at 8:22 AM, Matt Wynne wrote:
Hi all,
I'm spec'ing a method that yields a value. Right now, I spec it like this:
result = nil
thing.do_stuff { |value| result = value }
result.should == expected
On 7 Mar 2012, at 15:12, Ken Chien wrote:
Hi Matt,
On Wed, Mar 7, 2012 at 2:22 AM, Matt Wynne m...@mattwynne.net wrote:
Hi all,
I'm spec'ing a method that yields a value. Right now, I spec it like this:
result = nil
thing.do_stuff { |value| result = value }
result.should
On 7 Mar 2012, at 18:16, David Chelimsky wrote:
On Wed, Mar 7, 2012 at 11:56 AM, Matt Wynne m...@mattwynne.net wrote:
On 7 Mar 2012, at 11:39, Morten Møller Riis wrote:
On Mar 7, 2012, at 8:22 AM, Matt Wynne wrote:
Hi all,
I'm spec'ing a method that yields a value. Right now, I
On 7 Mar 2012, at 18:26, Zach Dennis wrote:
Matt,
I have typically done what you are already doing, but I am also
interested in the answer you seek. Another idea might be something
like since #do-stuff would need to be invoked with a block:
expect(thing, :do_stuff).to_yield val
Yeah
off without it.
^ Yep, what he said ^
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Founder, http://www.relishapp.com/
Twitter, https://twitter.com/mattwynne
___
rspec-users mailing list
rspec
On 16 Feb 2012, at 12:21, David Chelimsky wrote:
On Thu, Feb 16, 2012 at 4:17 AM, Matt Wynne m...@mattwynne.net wrote:
On 14 Feb 2012, at 20:44, Justin Ko wrote:
On Feb 14, 2012, at 9:23 AM, David Chelimsky wrote:
On Tue, Feb 14, 2012 at 9:28 AM, Justin Ko jko...@gmail.com wrote
into a single shared library. FYI the
feature for it is here:
https://github.com/cucumber/cucumber-rails/blob/master/features/choose_javascript_database_strategy.feature
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Founder, http
the material in there would help you, particularly
the chapters on using Capybara (which wraps Selenium Webdriver).
[1] http://pragprog.com/book/hwcuc/the-cucumber-book
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Founder, http
specs be with that? I really can't start… :(
Have you started to design a domain model for this? Could we see a picture?
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
Founder, http://www.relishapp.com/
Twitter, https://twitter.com/mattwynne
to work.
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne
___
rspec-users mailing list
rspec-users
@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne
hear
the tests screaming?
:)
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne
___
rspec-users
their application in the Ruby / Rails
world recently[3]
[1] http://martinfowler.com/eaaDev/PassiveScreen.html
[2] http://www.objectmentor.com/resources/articles/TheHumbleDialogBox.pdf
[3] http://blog.steveklabnik.com/2011/09/06/the-secret-to-rails-oo-design.html
cheers,
Matt
--
Freelance programmer coach
won't work with Rails apps that
old, so you'll need to use Webrat for integration testing instead.
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com
the model and the example group.
Obviously, that's not ideal, because it's only necessary for the specs to
work. Is there any other solution?
https://gist.github.com/1275799
I don't know about anyone else, but I can't see that gist.
cheers,
Matt
--
Freelance programmer coach
Author, http
haven't used it, but this looks good to me.
--
Alex Chaffee - a...@stinky.com
http://alexchaffee.com
http://twitter.com/alexch
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
/wait_for.rb
[2] https://gist.github.com/1228927
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne
___
rspec
, Sep 13, 2011 at 3:56 AM, Matt Wynne m...@mattwynne.net wrote:
Hi all,
In GOOS[1] they use an assertion called assertEventually which samples the
system for a success state until a certain timeout has elapsed. This allows
you to synchronise the tests with asynchronous code.
Do we have
capybara has wait_until { } but that's fairly rudimentary - the failure message
isn't very helpful. Is there anything else already out there?
[1] http://www.growing-object-oriented-software.com/
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book
On 7 Sep 2011, at 07:53, Sidu Ponnappa wrote:
On 7 September 2011 11:09, Justin Ko jko...@gmail.com wrote:
On Tue, Sep 6, 2011 at 9:40 PM, slavix mikerin.sl...@gmail.com wrote:
Hello,
Is there any way to test model inheritance in spec?
something like..
it { ChildModel.should
On 9 Aug 2011, at 13:11, David Chelimsky wrote:
On Aug 9, 2011, at 2:00 AM, Chris Mear wrote:
On 9 Aug 2011, at 01:02, David Chelimsky wrote:
On Aug 8, 2011, at 6:00 PM, Matt Wynne wrote:
I expected to be able to do something like this in a routing spec:
{ :get = '/legacy/route
for
redirect routing configuration. Did I miss it?
Do I need to spec this with a request spec instead?
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne
::Selenium::Driver.new(app, :browser = :chrome)
end
[1] https://github.com/jnicklas/capybara
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne
that help?
cheers,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne
___
rspec-users mailing list
rspec-users
,
Matt
--
Freelance programmer coach
Author, http://pragprog.com/books/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne
___
rspec-users mailing list
rspec-users@rubyforge.org
http
this?
cheers,
Matt
m...@mattwynne.net
07974 430184
[1]
https://www.destroyallsoftware.com/screencasts/catalog/fast-tests-with-and-without-rails
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
something similar in an RSpec
before block, or do I need to delve into writing a formatter?
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
spec` the `spec` part is the folder where you want the
`rspec` program to look for tests to run.
Does that make more sense now?
cheers,
Matt
--
Freelance programmer coach
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
use Ruby's own built-in
assertions from the Test::Unit::Assertions namespace.
cheers,
Matt
--
Freelance programmer coach
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne
___
rspec-users mailing list
rspec-users
Chris Mear wrote in post #996234:
On 2 May 2011 00:58, Matt S. li...@ruby-forum.com wrote:
accepts_nested_attributes_for.)
before(:each) do
end
%= f.fields_for :owner do |owner_fields| %
class AssetController ApplicationController
def new
@asset = Asset.new
@asset.build_owner
end
Chris Mear wrote in post #996461:
On 3 May 2011, at 15:05, Matt S. wrote:
@asset.build_owner
Here is the rendered content:
input id=asset_name name=asset[name] size=30 type=text
/form
a lot about other things!
If you want to see everything you can do a 'git clone
git://github.com
of this on the web and have tried about everything I
can think of, but I still can't get view specs containing nested model
forms to pass, using fields_for on models with
accepts_nested_attributes_for.)
Much thanks!!!
Matt Smith
#spec/views/assets/new.html.erb_spec.rb
describe assets/new.html.erb
) { string here }
it should puts string do
puts text
end
end
Make sense?
cheers,
Matt
--
Freelance programmer coach
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne
___
rspec-users mailing list
rspec
://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users
://www.nofeed.org
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
--
Freelance programmer coach
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne
For some reason I can't figure out how to make the fields_for tags
render in the trivial example below; however, it works in the browser.
What does #build_association do that my stubbed method does not
replicate? (Or is that even the issue?)
I appreciate the insight. Thanks! Matt Smith
#spec
/runner.rb:10:in
`autorun'
from /Library/Ruby/Gems/1.8/bin/rspec:19
rake aborted!
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
), but it seems that this is not valid anymore for Rails 3
as there is no @controller.template.
How do I stub that method?
Kai
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m
@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
? Not sure what to put in my PATH environment variables.
Thanks!
I mean Rspec, not Jspec
It does help if you use the right words for things ;)
Since RSpec 2.0, the binary command is now `rspec` rather than `spec`.
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On 6 Mar 2011, at 10:30, Hedge Hog wrote:
On Sun, Mar 6, 2011 at 12:27 AM, Matt Wynne m...@mattwynne.net wrote:
On 5 Mar 2011, at 12:06, Hedge Hog wrote:
On Fri, Mar 4, 2011 at 8:12 PM, Matt Wynne m...@mattwynne.net wrote:
On 4 Mar 2011, at 05:45, Hedge Hog wrote:
Hi,
I'm
On 5 Mar 2011, at 12:06, Hedge Hog wrote:
On Fri, Mar 4, 2011 at 8:12 PM, Matt Wynne m...@mattwynne.net wrote:
On 4 Mar 2011, at 05:45, Hedge Hog wrote:
Hi,
I'm struggling with something that seems to be simple, and I've not
had any joy following the RSpec books suggestions (p. 187
/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
.
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users
://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On 12 Feb 2011, at 12:49, Ants Pants wrote:
On 11 February 2011 23:45, Matt Wynne m...@mattwynne.net wrote:
On 11 Feb 2011, at 16:04, Ants Pants wrote:
You are my last resort for solving this issue as I have tried and tried to
solve it myself but can't.
I'm not even sure if it's
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
routing methods module (can't remember the name off-hand) you won't have access
to either of these methods in the matcher. Look at the non-DSL way to create a
matcher and this will make more sense.
Also, you need to return true / false from #match, rather than using an
assertion.
cheers,
Matt
m
On 31 Jan 2011, at 08:26, Pat Maddox wrote:
I load my XML docs into a hash using Hash#from_xml and then compare the
hashes.
Bullseye! Thanks Pat.
On Jan 26, 2011, at 7:26 AM, Matt Wynne m...@mattwynne.net wrote:
I have a problem. I have a test that needs to assert that one XML document
that already
exists. I feel like I'm missing a way to do it within an XML library, for
example.
Any clues out there?
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman
On 21 Jan 2011, at 16:22, Brian Warner wrote:
Matt Wynne wrote in post #976412:
On 20 Jan 2011, at 19:32, Brian Warner wrote:
I have a file in step_definitions that's giving me an error for an
uninitialized constant. My guess is I need to 'require' the file where
that class is defined
your require statement is in
features/support/env.rb
I'm surprised that the book doesn't tell you to do that - did you maybe miss a
step?
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http
This is a classic, with some terrific insights from Steve Freeman and Nat
Pryce, two of the finest practitioners of TDD that I know:
http://groups.google.com/group/growing-object-oriented-software/t/af0c4251123fde43
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http
worth tagging them to exclude them from your check-in build run
and running them in a nightly build instead.
Hope that helps.
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org
can even diff it against
a Cucumber::Ast::Table object.
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On 29 Dec 2010, at 10:21, Matt Wynne wrote:
On 29 Dec 2010, at 06:14, Shea Levy wrote:
Hi all,
Suppose I have a table that lists all of my products, that includes a a
thDescription/th somewhere in the first tr, and each product has its
data held within a tr id=product%= product.id
Hey David,
You rock. Thanks a million. Got it working right away!
Thanks,
Matt
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
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 that
the uploaded file is the same as some golden
%. These days, unless I'm rescuing a legacy project, I only really use code
coverage to tell me about unused code that I can delete.
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman
.
Thank you for your help,
Gennady.
I don't consider that noise, I consider it useful clues as to what's wrong.
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo
(path_to_expected_file)
Then when it fails, I get an ugly diff of the difference between the binary
files. So I'm about to invent something of my own. Has anyone got a good
pattern for doing this already?
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users
On 10 Dec 2010, at 15:56, 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 that the
uploaded file is the same as some golden master. If I do this:
File.read
!
Best regards,
Erik
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
m...@mattwynne.net
07974 430184
___
rspec-users mailing list
rspec
;input
id=message_submit name=commit type=submit value=Save
Note the
value=Message_#lt;RSpec::Core::ExampleGroup::Nested_1:0x010312db68gt;,
which must be why the test fails. Is this an intentional change on how stub
or assign works?
Much thanks!
Matt Smith
--
matthewcalebsm...@gmail.com
I've been looking for the definitive answer for months now, and the
RSpec book doesn't touch on it at all:
How do we now handle stubbing out rendering of partials in view specs
in RSpec2?
I have a large (35K+ lines of views and related specs) that I'm trying
to upgrade to Rails3/RSpec2. My views
Hello there
I'm running a rails 2.3.5 project and I can't run any rake tasks
My error is
no such file to load -- spec/rake/spectask
Here's a relevant snippet of gem list output
rails (2.3.5)
rake (0.8.7)
random_data (1.5.0)
RedCloth (4.2.2)
remarkable (3.1.13)
remarkable_activerecord
I've found a solution.
I upgraded rspec-rails to 1.3.3 in my gemfile, which in turn downgraded
rspec from 2.0 to 1.3.1 in the gem list. This configuration now works
ok. God knows what was happening there.
--
Posted via http://www.ruby-forum.com/.
Matt
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
Hey all, I'm trying to migrate over to Rails3/RSpec2 and I cannot seem
to get the specing of `render` right. I know there was some changes in
RSpec2 that affect this, and I was hoping to get a bit of help.
I have this is in a before block in a view spec:
view.should
have a
dependency on ActiveRecord leaking out of my model all over the place.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
http://blog.mattwynne.net
+44(0)7974 430184
cheers,
Matt
http://blog.mattwynne.net
+44(0)7974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
user.deposit_record.should == #something.
end
--
Posted via http://www.ruby-forum.com/.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
http://blog.mattwynne.net
+44(0)7974 430184
David Chelimsky dchelim...@gmail.com wrote:
On Aug 24, 2010, at 6:51 PM, Titinux wrote:
Hello,
I'm new in using RSpec and I can't figured out to spec this controller
action.
class OrdersController ApplicationController
before_filter :authenticate_user!
def index
,
Matt
http://blog.mattwynne.net
+44(0)7974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On 9 Aug 2010, at 01:54, David Chelimsky wrote:
On Aug 8, 2010, at 11:13 AM, Matt Wynne wrote:
On 8 Aug 2010, at 16:53, David Chelimsky wrote:
On Aug 8, 2010, at 10:40 AM, Matt Wynne wrote:
On 8 Aug 2010, at 16:38, David Chelimsky wrote:
On Aug 7, 2010, at 4:10 PM, David Chelimsky
On 9 Aug 2010, at 13:04, David Chelimsky wrote:
On Aug 9, 2010, at 6:37 AM, Matt Wynne wrote:
On 9 Aug 2010, at 01:54, David Chelimsky wrote:
On Aug 8, 2010, at 11:13 AM, Matt Wynne wrote:
On 8 Aug 2010, at 16:53, David Chelimsky wrote:
On Aug 8, 2010, at 10:40 AM, Matt
cheers,
Matt
http://blog.mattwynne.net
+44(0)7974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
it with the Assertions module's methods?)
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
http://blog.mattwynne.net
+44(0)7974 430184
___
rspec
On 8 Aug 2010, at 16:53, David Chelimsky wrote:
On Aug 8, 2010, at 10:40 AM, Matt Wynne wrote:
On 8 Aug 2010, at 16:38, David Chelimsky wrote:
On Aug 7, 2010, at 4:10 PM, David Chelimsky wrote:
Hey all,
It turns out that if you have
* Rails (2 or 3)
* Ruby-1.9
* a model named
these with some other scenarios that focus on the behaviour of
the user interface if you feel you need that assurance.
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
http
Lille,
On Sat, 24 Jul 2010 01:26 -0500, David Chelimsky
dchelim...@gmail.com wrote:
On Fri, Jul 23, 2010 at 6:46 PM, Lille lille.pengu...@gmail.com wrote:
Hi,
I've been browsing the RSpec book and the RDoc, but I can't see how to
ensure the following:
Stub an instance with a method
://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
http://blog.mattwynne.net
+44(0)7974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
On 19 Jul 2010, at 11:38, Wincent Colaiuta wrote:
El 19/07/2010, a las 10:58, Matt Wynne escribió:
On 18 Jul 2010, at 00:10, David Chelimsky wrote:
On Jul 17, 2010, at 1:18 PM, Costa Shapiro wrote:
Hello,
I've been thinking of how to express my idea in code, but since I've never
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
cheers,
Matt
http://blog.mattwynne.net
+44(0)7974 430184
___
rspec-users mailing list
rspec-users@rubyforge.org
On 15 Jul 2010, at 14:55, Chuck Remes wrote:
On Jul 14, 2010, at 4:20 PM, Matt Wynne wrote:
You can do this, by using a test spy to remember the value of foo passed
into the stubbed constructor and then later comparing it:
let(:foo) { Foo.new }
it should allocate a helper class
1 - 100 of 643 matches
Mail list logo